I fixed something else in my long chain of fixes that do not actually
resolve my problem.
On the Windows side when SDL window data being setup SDL determines what has
focus and reacts accordingly. This patch fixes that little bit for x11
windows.
As for my issue, which has been posted to the forums (
http://forums.libsdl.org/viewtopic.php?t=7618 ) and I have sent to this
mailing list, not much has changed. My application still receives input on
the windows side, and still does not retrieve input on the Linux side.
However, one tiny behavior did change. Whenever I launch my application from
my IDE, it opens a console window with some debugging messages. Before when
I launched the application, the game window would remain open even if I
closed the console window; the easiest way or me to close the whole
application was xkill. Now if I close that debugging/console window my
application closes.
Here is the patch for SDL_x11window.c:
218a219,233> {
Window FocalWindow; int RevertTo=0; XGetInputFocus(data->videodata->display, &FocalWindow, &RevertTo); if (FocalWindow==w) { window->flags |= SDL_WINDOW_INPUT_FOCUS; SDL_SetKeyboardFocus(data->window); } if (window->flags & SDL_WINDOW_INPUT_GRABBED) { /* Tell x11 to clip mouse */ } }
–
- Joe Toppi
(402) 714-7539
Toppij at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_x11window.c.Sqeaky.Oct12.patch
Type: application/octet-stream
Size: 438 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20111012/ea72d950/attachment.obj