From 75e6029206c701c32ead086d2a5f5a3c5cd239d7 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 8 Apr 2016 17:26:34 -0700 Subject: [PATCH] stack: Fix 32-bit issues Since g_array_append_val isn't smart enough to do a proper upcast, we have to do it manually, lest we get junk. This fixes various RAISE_ABOVE: window not in stack: 0x8100c8003 warnings that appear on 32-bit systems. --- 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 a3879f760..adccae0f9 100644 --- a/src/core/stack.c +++ b/src/core/stack.c @@ -1061,7 +1061,7 @@ stack_sync_to_xserver (MetaStack *stack) for (tmp = g_list_last(stack->sorted); tmp != NULL; tmp = tmp->prev) { MetaWindow *w = tmp->data; - Window top_level_window; + guint64 top_level_window; guint64 stack_id; if (w->unmanaging) @@ -1100,7 +1100,8 @@ stack_sync_to_xserver (MetaStack *stack) /* The screen guard window sits above all hidden windows and acts as * a barrier to input reaching these windows. */ - g_array_append_val (x11_hidden_stack_ids, stack->screen->guard_window); + guint64 guard_window_id = stack->screen->guard_window; + g_array_append_val (x11_hidden_stack_ids, guard_window_id); /* Sync to server */