clutter: Drop CLUTTER_DESTROY_NOTIFY event

Stop propagating this as a Clutter event. DestroyNotify is only
relevant on nested X11 sessions, so handle it specifically in place.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1623>
This commit is contained in:
Carlos Garnacho
2020-12-07 18:18:00 +01:00
committed by Marge Bot
parent 49b3ac2f86
commit 96e320ba5a
8 changed files with 5 additions and 34 deletions

View File

@ -734,9 +734,10 @@ meta_stage_x11_translate_event (MetaStageX11 *stage_x11,
g_debug ("Destroy notification received for stage, win:0x%x",
(unsigned int) xevent->xany.window);
event->any.type = CLUTTER_DESTROY_NOTIFY;
event->any.stage = stage;
res = TRUE;
g_return_val_if_fail (META_IS_STAGE_X11_NESTED (stage_x11),
FALSE);
meta_quit (META_EXIT_SUCCESS);
res = FALSE;
break;
case ClientMessage: