Skip to content

Commit

Permalink
X11 backend: tell app that mouse focus has been obtained when grabbin…
Browse files Browse the repository at this point in the history
…g 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.
  • Loading branch information
icculus committed Nov 13, 2006
1 parent 313b1f0 commit 9247e22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11wm.c
Expand Up @@ -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);

Expand Down

0 comments on commit 9247e22

Please sign in to comment.