Commit 8061a35d authored by Ryan C. Gordon's avatar Ryan C. Gordon

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
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402231
parent 6bde1341
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment