Commit 0487d672 authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by Marco Trevisan

x11-display: Handle mapped XIDs per type

Starting from commit 7713006f, during X11 disposition we also unmanage the
windows using the xids hash table values list.
However, this is also populated by the X11 Meta barrier implementation and then
contains both Windows and Barriers.

So when going through the values list, check whether we're handling a window or
a barrier and based on that, unmanage or destroy it.

Fixes #624
parent e94a0fce
Pipeline #86798 passed with stages
in 3 minutes and 51 seconds
......@@ -99,7 +99,6 @@ static void
meta_x11_display_unmanage_windows (MetaX11Display *x11_display)
GList *windows, *l;
MetaWindow *window;
if (!x11_display->xids)
......@@ -109,9 +108,17 @@ meta_x11_display_unmanage_windows (MetaX11Display *x11_display)
for (l = windows; l; l = l->next)
window = l->data;
if (!window->unmanaging)
meta_window_unmanage (window, META_CURRENT_TIME);
if (META_IS_WINDOW (l->data))
MetaWindow *window = l->data;
if (!window->unmanaging)
meta_window_unmanage (window, META_CURRENT_TIME);
else if (META_IS_BARRIER (l->data))
meta_barrier_destroy (META_BARRIER (l->data));
g_assert_not_reached ();
g_list_free_full (windows, g_object_unref);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment