1
0
Fork 0
forked from wry/wry

pointer-constraints: always apply position hints asynchronously

This commit is contained in:
Julian Orth 2025-07-01 09:25:29 +02:00
parent bae92d90d0
commit 4d9dde7927
6 changed files with 54 additions and 22 deletions

View file

@ -526,7 +526,7 @@ impl WlSeatGlobal {
let (x, y) = self.set_pointer_cursor_position(x, y);
if let Some(c) = self.constraint.get() {
if c.ty == ConstraintType::Lock || !c.contains(x.round_down(), y.round_down()) {
c.deactivate(false, false);
c.deactivate(false);
}
}
self.state.for_each_seat_tester(|t| {
@ -1289,7 +1289,7 @@ impl WlSeatGlobal {
pub fn leave_surface(&self, n: &WlSurface) {
let serial = n.client.next_serial();
for (_, constraint) in &n.constraints {
constraint.deactivate(true, true);
constraint.deactivate(true);
}
self.surface_pointer_event(Version::ALL, n, |p| p.send_leave(serial, n.id));
self.surface_pointer_frame(n);