From 8966f95e7247fb39edca860669cced6a3e4f31bf Mon Sep 17 00:00:00 2001 From: tiosgz Date: Fri, 4 Aug 2023 15:43:23 +0000 Subject: [PATCH] Root: make 'fallback output empty' assertion stricter --- river/Root.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/river/Root.zig b/river/Root.zig index 175c75f..4eb8fd2 100644 --- a/river/Root.zig +++ b/river/Root.zig @@ -355,8 +355,6 @@ pub fn activateOutput(root: *Self, output: *Output) void { { var it = root.fallback.pending.focus_stack.safeIterator(.reverse); while (it.next()) |view| view.setPendingOutput(output); - assert(root.fallback.pending.focus_stack.empty()); - assert(root.fallback.pending.wm_stack.empty()); } { // Focus the new output with all seats @@ -367,6 +365,8 @@ pub fn activateOutput(root: *Self, output: *Output) void { } } } + assert(root.fallback.pending.focus_stack.empty()); + assert(root.fallback.pending.wm_stack.empty()); root.applyPending(); }