Cursor: fix incorrect lock manager state assertion

This commit is contained in:
Zakariyya Von Forslun 2023-01-13 06:39:55 +10:00 committed by Isaac Freund
parent 84abdfaced
commit 6fdfb7134f

View File

@ -367,7 +367,7 @@ fn updateKeyboardFocus(self: Self, result: SurfaceAtResult) void {
self.seat.setFocusRaw(.{ .lock_surface = lock_surface });
},
.xwayland_override_redirect => |override_redirect| {
assert(server.lock_manager.state != .unlocked);
assert(server.lock_manager.state == .unlocked);
override_redirect.focusIfDesired();
},
}