window: Consider stickiness changes on feature recalc

Some properties like the window type can affect the stickiness.
Make sure workspaces are updated in that case to pick up the
change.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3305>
This commit is contained in:
Florian Müllner 2023-10-09 20:25:50 +02:00 committed by Marge Bot
parent b9008ee83d
commit 6a22b52579

View File

@ -5687,6 +5687,9 @@ meta_window_recalc_features (MetaWindow *window)
if (old_skip_taskbar != window->skip_taskbar) if (old_skip_taskbar != window->skip_taskbar)
g_object_notify_by_pspec (G_OBJECT (window), obj_props[PROP_SKIP_TASKBAR]); g_object_notify_by_pspec (G_OBJECT (window), obj_props[PROP_SKIP_TASKBAR]);
if (old_always_sticky != window->always_sticky)
meta_window_on_all_workspaces_changed (window);
/* FIXME: /* FIXME:
* Lame workaround for recalc_features being used overzealously. * Lame workaround for recalc_features being used overzealously.
* The fix is to only recalc_features when something has * The fix is to only recalc_features when something has