x11: Don't handle focus events for NULL windows

The check was accidentally removed in the refactoring of
2ea328dfbc.
This commit is contained in:
Benjamin Otte 2011-12-22 08:29:47 +01:00
parent 18406b7b04
commit a61ba41167

View File

@ -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: