forked from AuroraMiddleware/gtk
x11: Don't handle focus events for NULL windows
The check was accidentally removed in the refactoring of
2ea328dfbc
.
This commit is contained in:
parent
18406b7b04
commit
a61ba41167
@ -664,12 +664,14 @@ gdk_x11_device_manager_core_translate_event (GdkEventTranslator *translator,
|
||||
|
||||
case FocusIn:
|
||||
case FocusOut:
|
||||
_gdk_device_manager_core_handle_focus (window,
|
||||
device_manager->core_keyboard,
|
||||
NULL,
|
||||
xevent->type == FocusIn,
|
||||
xevent->xfocus.detail,
|
||||
xevent->xfocus.mode);
|
||||
if (window)
|
||||
_gdk_device_manager_core_handle_focus (window,
|
||||
device_manager->core_keyboard,
|
||||
NULL,
|
||||
xevent->type == FocusIn,
|
||||
xevent->xfocus.detail,
|
||||
xevent->xfocus.mode);
|
||||
return_val = FALSE;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user