mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
x11-display: Stop special casing barriers when iterating window table
In the past, barries were added to the window management X11 display instance window table, and then special cased when iterating over the list. Since then, barriers, which are really part of the backend, has stopped being added to the window hash table, instead being managed by the backend. Lets clean up the left-over special casing that is no longer needed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2442>
This commit is contained in:
parent
0debb24e12
commit
1992aa1567
@ -107,18 +107,11 @@ meta_x11_display_unmanage_windows (MetaX11Display *x11_display)
|
||||
|
||||
for (l = windows; l; l = l->next)
|
||||
{
|
||||
if (META_IS_WINDOW (l->data))
|
||||
{
|
||||
MetaWindow *window = l->data;
|
||||
MetaWindow *window = META_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));
|
||||
else
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
g_list_free_full (windows, g_object_unref);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user