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:
parent
5d4cfb607c
commit
cd245bce0c
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue