git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit9aa5063073559bcd2f12ec6512ca7511fd2e21a1
parenteb0a39cda7
authorZakariyya Von Forslun <[email protected]>
date2023-01-13 06:39
Cursor: fix incorrect lock manager state assertion

 river/Cursor.zig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/river/Cursor.zig b/river/Cursor.zig
index 8fd669d..cf779e9 100644
--- a/river/Cursor.zig
+++ b/river/Cursor.zig
@@ -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();
         },
     }