mirror of
https://github.com/zoriya/river.git
synced 2025-12-06 07:06:10 +00:00
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.
This commit is contained in:
@@ -73,7 +73,6 @@ pub fn maybeActivate(constraint: *PointerConstraint) void {
|
|||||||
const seat: *Seat = @ptrFromInt(constraint.wlr_constraint.seat.data);
|
const seat: *Seat = @ptrFromInt(constraint.wlr_constraint.seat.data);
|
||||||
|
|
||||||
assert(seat.cursor.constraint == constraint);
|
assert(seat.cursor.constraint == constraint);
|
||||||
assert(seat.wlr_seat.keyboard_state.focused_surface == constraint.wlr_constraint.surface);
|
|
||||||
|
|
||||||
if (constraint.state == .active) return;
|
if (constraint.state == .active) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user