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,8 +510,9 @@ create_constraints (Constraint **constraints,
{ {
GSList *group_windows; GSList *group_windows;
GSList *tmp2; GSList *tmp2;
MetaGroup *group; MetaGroup *group = NULL;
if (w->client_type == META_WINDOW_CLIENT_TYPE_X11)
group = meta_window_x11_get_group (w); group = meta_window_x11_get_group (w);
if (group != NULL) if (group != NULL)