From cd245bce0c93878917d36838be501fc938aea202 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 8 Feb 2024 22:02:20 +0100 Subject: [PATCH] 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: --- src/core/stack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/stack.c b/src/core/stack.c index da8c91186..c48ff54d2 100644 --- a/src/core/stack.c +++ b/src/core/stack.c @@ -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);