Merge branch 'applaunch-warning' into 'master'

x11: Ignore stray DestroyNotify events

Closes #3006

See merge request GNOME/gtk!2355
This commit is contained in:
Matthias Clasen 2020-08-03 03:30:59 +00:00
commit 9659d3f78a

View File

@ -795,7 +795,8 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator,
if (!is_substructure)
{
event = gdk_delete_event_new (surface);
if (surface)
event = gdk_delete_event_new (surface);
if (surface && GDK_SURFACE_XID (surface) != x11_screen->xroot_window)
gdk_surface_destroy_notify (surface);