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:
Carlos Garnacho 2023-11-24 23:37:20 +01:00
parent 988b9de210
commit d78475372f

View File

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