git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit8161776c5183e223081ce5b6afe1c56252beadd8
parent9ff99d0c98
authortiosgz <[email protected]>
date2023-08-04 15:43
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();
 }