Root: trival code cleanup in deactivateOutput()
This commit is contained in:
parent
b34e1c6ebd
commit
bf7b9d15dd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user