main: guard window-specific code paths

This was overlooked when I first tried to
make things for GtkRoot.
This commit is contained in:
Matthias Clasen 2019-03-03 17:42:36 -05:00
parent afcf3e66f6
commit 618f1f08ec

View File

@ -1859,6 +1859,7 @@ gtk_main_do_event (GdkEvent *event)
GtkWidget *focus_widget;
if (event->any.type == GDK_KEY_PRESS &&
GTK_IS_WINDOW (target_widget) &&
gtk_window_activate_key (GTK_WINDOW (target_widget), (GdkEventKey *) event))
goto cleanup;