Root: make 'fallback output empty' assertion stricter

This commit is contained in:
tiosgz 2023-08-04 15:43:23 +00:00
parent 57186fced3
commit 8966f95e72

View File

@ -355,8 +355,6 @@ pub fn activateOutput(root: *Self, output: *Output) void {
{ {
var it = root.fallback.pending.focus_stack.safeIterator(.reverse); var it = root.fallback.pending.focus_stack.safeIterator(.reverse);
while (it.next()) |view| view.setPendingOutput(output); 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 // 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(); root.applyPending();
} }