1
0
Fork 0

core/stack: Check client type before getting group

Closes https://gitlab.gnome.org/GNOME/mutter/-/issues/3283

Fixes: 43351b483 ("window: Move group to WindowX11")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3572>
This commit is contained in:
Bilal Elmoussaoui 2024-02-08 22:02:20 +01:00
parent 5d4cfb607c
commit cd245bce0c

View file

@ -510,9 +510,10 @@ create_constraints (Constraint **constraints,
{
GSList *group_windows;
GSList *tmp2;
MetaGroup *group;
MetaGroup *group = NULL;
group = meta_window_x11_get_group (w);
if (w->client_type == META_WINDOW_CLIENT_TYPE_X11)
group = meta_window_x11_get_group (w);
if (group != NULL)
group_windows = meta_group_list_windows (group);