1
0
Fork 0

window: Ignoring unmanaging ancestor when finding root

This avoids the following critical warning happening sometimes when a
Wayland client exits taking all its window with it in an arbitrary
order:

    CRITICAL: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3870>
This commit is contained in:
Jonas Ådahl 2024-07-16 11:32:37 +02:00 committed by Marge Bot
parent d80f1944ef
commit 9628806b37

View file

@ -4946,6 +4946,7 @@ find_root_ancestor (MetaWindow *window,
MetaWindow **ancestor = data;
/* Overwrite the previously "most-root" ancestor with the new one found */
if (!window->unmanaging)
*ancestor = window;
/* We want this to continue until meta_window_foreach_ancestor quits because