aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiosgz <alamica@protonmail.com>2023-08-04 15:43:23 +0000
committertiosgz <alamica@protonmail.com>2023-08-13 11:06:57 +0000
commit8966f95e7247fb39edca860669cced6a3e4f31bf (patch)
tree6bf22c46bb658a0805da32194436503511aaf3e6
parent57186fced3630885c0fa0b7edef4a5c469216264 (diff)
downloadriver-8966f95e7247fb39edca860669cced6a3e4f31bf.tar.gz
river-8966f95e7247fb39edca860669cced6a3e4f31bf.tar.xz
Root: make 'fallback output empty' assertion stricter
-rw-r--r--river/Root.zig4
1 files 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();
}