diff --git a/src/core/stack.c b/src/core/stack.c index a8d97532e..546531004 100644 --- a/src/core/stack.c +++ b/src/core/stack.c @@ -1508,7 +1508,7 @@ stack_sync_to_xserver (MetaStack *stack) if (x_ref->any.type != META_WINDOW_CLIENT_TYPE_X11) { for (x_ref = newp; - x_ref->any.type != META_WINDOW_CLIENT_TYPE_X11 && x_ref > new_stack; + x_ref->any.type != META_WINDOW_CLIENT_TYPE_X11 && x_ref < new_end; x_ref++) ; }