Mon, 16 Apr 2018 02:11:09 -0400coreaudio: Use the standard SDL audio thread instead of spinning a new one.
Ryan C. Gordon <icculus@icculus.org> [Mon, 16 Apr 2018 02:11:09 -0400] rev 11945
coreaudio: Use the standard SDL audio thread instead of spinning a new one.

Fixes corner cases, like the audio callback not firing if the device is
disconnected, etc.

Sun, 15 Apr 2018 17:42:09 -0400wayland: zxdg_shell_v6 needs a configure event before using a surface at all.
Ryan C. Gordon <icculus@icculus.org> [Sun, 15 Apr 2018 17:42:09 -0400] rev 11944
wayland: zxdg_shell_v6 needs a configure event before using a surface at all.

Fixes Bugzilla #4109.
Fixes Bugzilla #4119.

Sun, 15 Apr 2018 09:37:51 -0700Fixed bug 4135 - Broken symlink libSDL2.so since rev11940
Sam Lantinga <slouken@libsdl.org> [Sun, 15 Apr 2018 09:37:51 -0700] rev 11943
Fixed bug 4135 - Broken symlink libSDL2.so since rev11940

Tiago O.

Symlink points to the wrong folder, and target will always have debug postfix, so it'll be broken for other build types.

Wed, 11 Apr 2018 18:28:03 -0700Added support for the GameSir G3w
Sam Lantinga <slouken@libsdl.org> [Wed, 11 Apr 2018 18:28:03 -0700] rev 11942
Added support for the GameSir G3w

Wed, 11 Apr 2018 06:16:23 +0200Fix the include path in the installed CMake target import file
Bastien Bouclet <bastien.bouclet@gmail.com> [Wed, 11 Apr 2018 06:16:23 +0200] rev 11941
Fix the include path in the installed CMake target import file

Previously the include path was {INSTALL_PREFIX}/include,
it is now {INSTALL_PREFIX}/include/SDL2 to be consistent with
the other build and package configuration systems.

Fixes #4128.

Tue, 10 Apr 2018 08:03:54 -0700Added debug postfix to install command and fixed library path
Saad Khattak <saadrustam@gmail.com> [Tue, 10 Apr 2018 08:03:54 -0700] rev 11940
Added debug postfix to install command and fixed library path

Mon, 09 Apr 2018 10:37:31 -0700SDL:
Sam Lantinga <slouken@libsdl.org> [Mon, 09 Apr 2018 10:37:31 -0700] rev 11939
SDL:

On Windows, have SDL_ShowWindow() not activate the window if the window has the WS_EX_NOACTIVATE window flag.

Mon, 26 Mar 2018 12:38:29 -0700Fixed bug where an SDL window that was activated while hidden could never be shown.
Sam Lantinga <slouken@libsdl.org> [Mon, 26 Mar 2018 12:38:29 -0700] rev 11938
Fixed bug where an SDL window that was activated while hidden could never be shown.

Test code:
{
SDL_Window *win = SDL_CreateWindow( "Dummy", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 128, 128, SDL_WINDOW_HIDDEN );
SDL_SysWMinfo info;
SDL_VERSION( &info.version );
SDL_GetWindowWMInfo( win, &info );
SetActiveWindow( info.info.win.window );
{
DWORD then = SDL_GetTicks();
while ( ( SDL_GetTicks() - then ) < 3000 )
{
SDL_Event evt;
SDL_PollEvent( &evt );
}
SDL_ShowWindow( win );

then = SDL_GetTicks();
while ( ( SDL_GetTicks() - then ) < 3000 )
{
SDL_Event evt;
SDL_PollEvent( &evt );
}
}
SDL_DestroyWindow( win );
}

Sat, 24 Mar 2018 10:26:40 -0700Fixed bug 3804 - Message box on Windows truncates button ID
Sam Lantinga <slouken@libsdl.org> [Sat, 24 Mar 2018 10:26:40 -0700] rev 11937
Fixed bug 3804 - Message box on Windows truncates button ID

Simon Hug

I just wanted to fix a simple compiler warning in SDL_ShowMessageBox on Windows (which Sam fixed recently) and ended up finding some issues.

Attached patch fixes these issues:

- Because Windows only reports the lower 16 bits of the control identifier that was pushed, the button IDs used by SDL (C type int, most likely 32 bits) can get cut off.

- The documentation states (somewhat ambiguously) that the button ID will be -1 if the dialog was closed, but the current code sets 0. For SDL 2.1, I think this should be a return code of SDL_ShowMessageBox itself. That will free up the button ID and it seems a more appropriate place for signaling this event.

- Ampersands in controls will create mnemonics on Windows (underlined letters that, if combined with the Alt key, will push the button). I was thinking of adding a hint or flag to let the users enable it, but that might have unexpected results.

- When the size of the text gets calculated, it doesn't use the same parameters as the static control. This can cut off text or wrap it weirdly.

- On Windows, the Tab key is used to switch between control groups and sometimes between buttons in dialogs. This didn't seem to work correctly.

Attached patch also adds:

- Icons. Just the system ones that can be loaded with the ordinals IDI_ERROR, IDI_WARNING and IDI_INFORMATION.

- A button limit of 2^16 - 101.

- Some more specific error messages, but they never reach the user because how SDL_ShowMessageBox handles them if an implementation returns with an error.

Sat, 24 Mar 2018 10:15:42 -0700Fixed bug 4108 - Missing break statements in SDL_CDResume and SDL_CDStop SDL-1.2
Sam Lantinga <slouken@libsdl.org> [Sat, 24 Mar 2018 10:15:42 -0700] rev 11936
Fixed bug 4108 - Missing break statements in SDL_CDResume and SDL_CDStop

Ozkan Sezer

Two break statements are missing in SDL_cdrom.c:SDL_CDResume()
and SDL_CDStop(), which negate the returned code from driver
and always return 0. The following patch adds those breaks.