forked from AuroraMiddleware/gtk
main: Avoid a warning
transient-for relationships only exist between windows, so check that both candidates are such. Fixes: #2894
This commit is contained in:
parent
0ef0edfa9a
commit
f07d304f19
@ -1753,6 +1753,7 @@ gtk_main_do_event (GdkEvent *event)
|
||||
((gtk_widget_is_sensitive (target_widget) || gdk_event_get_event_type (event) == GDK_SCROLL) &&
|
||||
gtk_widget_is_ancestor (target_widget, grab_widget)) ||
|
||||
(GTK_IS_WINDOW (grab_widget) &&
|
||||
GTK_IS_WINDOW (event_widget) &&
|
||||
grab_widget != event_widget &&
|
||||
is_transient_for (GTK_WINDOW (event_widget), GTK_WINDOW (grab_widget))))
|
||||
grab_widget = target_widget;
|
||||
|
Loading…
Reference in New Issue
Block a user