Cursor: fix incorrect lock manager state assertion
This commit is contained in:
parent
84abdfaced
commit
6fdfb7134f
@ -367,7 +367,7 @@ fn updateKeyboardFocus(self: Self, result: SurfaceAtResult) void {
|
|||||||
self.seat.setFocusRaw(.{ .lock_surface = lock_surface });
|
self.seat.setFocusRaw(.{ .lock_surface = lock_surface });
|
||||||
},
|
},
|
||||||
.xwayland_override_redirect => |override_redirect| {
|
.xwayland_override_redirect => |override_redirect| {
|
||||||
assert(server.lock_manager.state != .unlocked);
|
assert(server.lock_manager.state == .unlocked);
|
||||||
override_redirect.focusIfDesired();
|
override_redirect.focusIfDesired();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user