Sun, 03 Nov 2013 09:55:27 -0800Fixed bug 1990 - focus/keyboard events not generated correctly for multiple windows
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 09:55:27 -0800] rev 7902
Fixed bug 1990 - focus/keyboard events not generated correctly for multiple windows

Mai Lavelle

I've recently tried to create multiple windows and process key events for them, and found that key events weren't being generated for most of the windows. After some investigating I've observed the following effects. All but the most recently created window experience these effects...

- a focus lost event is generated immediately after the focus gained event, even tho window still has focus
- key events report window id 0 rather than the id of the window which has focus, SDL thinks no window has focus?
- giving focus to a non SDL window and then selecting an SDL window causes events to be generated as expected, but only until focus changes again

Focus change events are queued and delayed (200 ticks) before they are dispatched. The problem occurs when a focus out and focus in event are received on the same tick. When these delayed events are dispatched they will be sent in the order determined by the window list rather than the order in which they are received.

The focus out dispatch is implemented by calling SDL_SetKeyboardFocus(NULL). This will remove focus from any window, regardless of whether it is the one originally targeted by the X11 event.

Since SDL_SetKeyboardFocus() will always dispatch a focus lost event as needed, the easiest solution is simply to only call SDL_SetKeyboardFocus(NULL) when SDL_GetKeyboardFocus() matches the target window.

Sun, 03 Nov 2013 09:42:23 -0800Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 09:42:23 -0800] rev 7901
Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning

Sat, 02 Nov 2013 12:07:21 +0100Changed parameter name for gesture template save functions from "src" to "dst".
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 02 Nov 2013 12:07:21 +0100] rev 7900
Changed parameter name for gesture template save functions from "src" to "dst".

Sat, 02 Nov 2013 11:51:23 +0100Removed unreachable return statement in gesture source.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 02 Nov 2013 11:51:23 +0100] rev 7899
Removed unreachable return statement in gesture source.

Sat, 02 Nov 2013 11:46:43 +0100Changed function to return -1 through SDL_Error() instead of plain -1.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 02 Nov 2013 11:46:43 +0100] rev 7898
Changed function to return -1 through SDL_Error() instead of plain -1.

Sat, 02 Nov 2013 11:42:00 +0100Corrected typo in source comment.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 02 Nov 2013 11:42:00 +0100] rev 7897
Corrected typo in source comment.

Thu, 31 Oct 2013 10:02:21 -0300Fixes Bug #2191,incorrect test for egl_context validity
Gabriel Jacobo <gabomdq@gmail.com> [Thu, 31 Oct 2013 10:02:21 -0300] rev 7896
Fixes Bug #2191,incorrect test for egl_context validity
Thanks David Binderman!

Wed, 30 Oct 2013 16:39:35 -0400Fixed common test usage string (was "hidpi", should be "highdpi").
Ryan C. Gordon <icculus@icculus.org> [Wed, 30 Oct 2013 16:39:35 -0400] rev 7895
Fixed common test usage string (was "hidpi", should be "highdpi").

Mon, 28 Oct 2013 22:43:39 -0400Updated GL version tests for Mac OS X 10.9 ("Mavericks").
Ryan C. Gordon <icculus@icculus.org> [Mon, 28 Oct 2013 22:43:39 -0400] rev 7894
Updated GL version tests for Mac OS X 10.9 ("Mavericks").

They changed the name of their GL 3.2 enum, added the GL 4.1 core profile.

Wed, 23 Oct 2013 20:58:39 -0700Added tag release-2.0.1 for changeset b9663c77f5c9
Sam Lantinga <slouken@libsdl.org> [Wed, 23 Oct 2013 20:58:39 -0700] rev 7893
Added tag release-2.0.1 for changeset b9663c77f5c9