mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 02:55:33 +00:00
Hopefully fixed focus problems when handling a global hotkey on X11.
See this thread for details: https://bugzilla.mozilla.org/show_bug.cgi?id=578265
This commit is contained in:
parent
e19f15ddd5
commit
0d39d09076
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue