mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
x11: Add "closing" flag to MetaX11Display
So code not directly in dispose() can know to avoid certain things when the X11 display is about to close. https://gitlab.gnome.org/GNOME/mutter/merge_requests/709
This commit is contained in:
parent
123b40105d
commit
879f5f0dbb
@ -144,6 +144,8 @@ struct _MetaX11Display
|
||||
|
||||
guint keys_grabbed : 1;
|
||||
|
||||
guint closing : 1;
|
||||
|
||||
/* we use property updates as sentinels for certain window focus events
|
||||
* to avoid some race conditions on EnterNotify events
|
||||
*/
|
||||
|
@ -129,6 +129,8 @@ meta_x11_display_dispose (GObject *object)
|
||||
{
|
||||
MetaX11Display *x11_display = META_X11_DISPLAY (object);
|
||||
|
||||
x11_display->closing = TRUE;
|
||||
|
||||
meta_x11_startup_notification_release (x11_display);
|
||||
|
||||
meta_prefs_remove_listener (prefs_changed_callback, x11_display);
|
||||
|
Loading…
Reference in New Issue
Block a user