Commit a61ba411 authored by Benjamin Otte's avatar Benjamin Otte

x11: Don't handle focus events for NULL windows

The check was accidentally removed in the refactoring of
2ea328df.
parent 18406b7b
......@@ -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:
......
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