mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
gtk: Obey GTK grabs on DnD events
Make DnD events get directed to the right places (and most importantly, not to the wrong places) when happening over modal parts of the UI. Fixes DnD started from popovers being able to drop on their modal toplevel.
This commit is contained in:
parent
988b9de210
commit
d78475372f
@ -1696,7 +1696,7 @@ gtk_main_do_event (GdkEvent *event)
|
||||
{
|
||||
GdkDrop *drop = gdk_dnd_event_get_drop (event);
|
||||
gtk_drop_begin_event (drop, gdk_event_get_event_type (event));
|
||||
gtk_propagate_event (target_widget, event);
|
||||
gtk_propagate_event (grab_widget, event);
|
||||
gtk_drop_end_event (drop);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user