summaryrefslogtreecommitdiff
path: root/src/core/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stack.c')
-rw-r--r--src/core/stack.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/stack.c b/src/core/stack.c
index 2481adf78..18f5d8917 100644
--- a/src/core/stack.c
+++ b/src/core/stack.c
@@ -35,10 +35,13 @@
#include "core/meta-workspace-manager-private.h"
#include "core/window-private.h"
#include "core/workspace-private.h"
-#include "meta/group.h"
#include "meta/prefs.h"
#include "meta/workspace.h"
+
+#ifdef HAVE_X11_CLIENT
+#include "meta/group.h"
#include "x11/meta-x11-display-private.h"
+#endif
#define WINDOW_TRANSIENT_FOR_WHOLE_GROUP(w) \
(meta_window_has_transient_type (w) && w->transient_for == NULL)
@@ -124,6 +127,7 @@ on_stack_changed (MetaStack *stack)
g_array_append_val (all_root_children_stacked, stack_id);
}
+#ifdef HAVE_X11_CLIENT
if (display->x11_display)
{
uint64_t guard_window_id;
@@ -133,7 +137,7 @@ on_stack_changed (MetaStack *stack)
guard_window_id = display->x11_display->guard_window;
g_array_append_val (hidden_stack_ids, guard_window_id);
}
-
+#endif
/* Sync to server */
meta_topic (META_DEBUG_STACK, "Restacking %u windows",
@@ -585,6 +589,7 @@ create_constraints (Constraint **constraints,
continue;
}
+#ifdef HAVE_X11_CLIENT
if (WINDOW_TRANSIENT_FOR_WHOLE_GROUP (w))
{
GSList *group_windows;
@@ -633,7 +638,9 @@ create_constraints (Constraint **constraints,
g_slist_free (group_windows);
}
- else if (w->transient_for != NULL)
+ else
+#endif /* HAVE_X11_CLIENT */
+ if (w->transient_for != NULL)
{
MetaWindow *parent;