Skip to content

Commit

Permalink
Hopefully fixed focus problems when handling a global hotkey on X11.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 10, 2013
1 parent e19f15d commit 0d39d09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -408,6 +408,13 @@ X11_DispatchEvent(_THIS)

/* Losing input focus? */
case FocusOut:{
if (xevent.xfocus.mode == NotifyGrab) {
/* Someone is handling a global hotkey, ignore it */
#ifdef DEBUG_XEVENTS
printf("window %p: FocusOut (NotifyGrab, ignoring)\n", data);
#endif
break;
}
if (xevent.xfocus.detail == NotifyInferior) {
/* We still have focus if a child gets focus */
#ifdef DEBUG_XEVENTS
Expand Down

0 comments on commit 0d39d09

Please sign in to comment.