code: Cleanup use of std library for consistancy

This commit is contained in:
Hugo Machet
2022-02-07 22:07:27 +01:00
committed by Isaac Freund
parent 995ae99be5
commit da59632cea
25 changed files with 103 additions and 97 deletions

View File

@ -267,7 +267,7 @@ fn handleButton(listener: *wl.Listener(*wlr.Pointer.event.Button), event: *wlr.P
self.seat.handleActivity();
if (event.state == .released) {
std.debug.assert(self.pressed_count > 0);
assert(self.pressed_count > 0);
self.pressed_count -= 1;
if (self.pressed_count == 0 and self.mode != .passthrough) {
self.leaveMode(event);