Merge branch 'wip/Jehan/gimp-issue-10515-crash-wayland' into 'gtk-3-24'

gdk: fix crash on Wayland with already destroyed surface.

See merge request GNOME/gtk!8016
This commit is contained in:
Matthias Clasen
2025-01-17 11:42:07 +00:00

View File

@ -1174,6 +1174,9 @@ data_device_enter (void *data,
GdkWindow *dest_window, *dnd_owner;
GdkAtom selection;
if (!surface)
return;
dest_window = wl_surface_get_user_data (surface);
if (!GDK_IS_WINDOW (dest_window))