mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 07:16:52 -05:00
X11 backend: tell app that mouse focus has been obtained when grabbing the
input. This allows us to enable DGA mode, even when the system cursor was outside of the window when the grab was initiated. Fixes Bugzilla #299, which has a more detailed explanation of the issue. --HG-- branch : SDL-1.2
This commit is contained in:
parent
28122b9e63
commit
889885e2d2
|
|
@ -369,6 +369,8 @@ SDL_GrabMode X11_GrabInputNoLock(_THIS, SDL_GrabMode mode)
|
|||
|
||||
/* Make sure we register input focus */
|
||||
SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
|
||||
/* Since we grabbed the pointer, we have mouse focus, too. */
|
||||
SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
|
||||
}
|
||||
XSync(SDL_Display, False);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user