code: Cleanup use of std library for consistancy
This commit is contained in:
committed by
Isaac Freund
parent
995ae99be5
commit
da59632cea
@ -225,12 +225,12 @@ pub fn setFocusRaw(self: *Self, new_focus: FocusTarget) void {
|
||||
// Set the new focus
|
||||
switch (new_focus) {
|
||||
.view => |target_view| {
|
||||
std.debug.assert(self.focused_output == target_view.output);
|
||||
assert(self.focused_output == target_view.output);
|
||||
if (target_view.pending.focus == 0) target_view.setActivated(true);
|
||||
target_view.pending.focus += 1;
|
||||
target_view.pending.urgent = false;
|
||||
},
|
||||
.layer => |target_layer| std.debug.assert(self.focused_output == target_layer.output),
|
||||
.layer => |target_layer| assert(self.focused_output == target_layer.output),
|
||||
.none => {},
|
||||
}
|
||||
self.focused = new_focus;
|
||||
|
Reference in New Issue
Block a user