Root: trival code cleanup in deactivateOutput()

This commit is contained in:
Isaac Freund 2024-02-19 23:21:08 +01:00
parent b34e1c6ebd
commit bf7b9d15dd
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -286,9 +286,7 @@ pub fn deactivateOutput(root: *Self, output: *Output) void {
// is being removed, store the views in Root.fallback_pending.
const fallback_output = blk: {
var it = root.active_outputs.iterator(.forward);
if (it.next()) |o| break :blk o;
break :blk null;
break :blk it.next();
};
if (fallback_output) |fallback| {
var it = output.pending.focus_stack.safeIterator(.reverse);