forked from AuroraMiddleware/gtk
main: guard window-specific code paths
This was overlooked when I first tried to make things for GtkRoot.
This commit is contained in:
parent
afcf3e66f6
commit
618f1f08ec
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user