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

commit3bdc5814e89cf65b1f707f206eaf393029e9d803
parent04c97b5733
authorIsaac Freund <[email protected]>
date2024-05-18 16:28
PointerConstraint: remove overly tight assert 2

This is a second copy of the same assert that was removed in the last
commit. It should have been removed by that commit as well but was
overlooked.

 river/PointerConstraint.zig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/river/PointerConstraint.zig b/river/PointerConstraint.zig
index 654debe..4f640e7 100644
--- a/river/PointerConstraint.zig
+++ b/river/PointerConstraint.zig
@@ -73,7 +73,6 @@ pub fn maybeActivate(constraint: *PointerConstraint) void {
     const seat: *Seat = @ptrFromInt(constraint.wlr_constraint.seat.data);
 
     assert(seat.cursor.constraint == constraint);
-    assert(seat.wlr_seat.keyboard_state.focused_surface == constraint.wlr_constraint.surface);
 
     if (constraint.state == .active) return;