1
0
Fork 0
forked from wry/wry

seat: don't set CURSOR_MOVED flag for warps

This commit is contained in:
Julian Orth 2026-03-23 17:27:38 +01:00
parent 320246a6d7
commit 7e923fef8b
3 changed files with 34 additions and 12 deletions

View file

@ -7,7 +7,7 @@ use {
ei_object::{EiObject, EiVersion},
},
fixed::Fixed,
ifs::wl_seat::PX_PER_SCROLL,
ifs::wl_seat::{CursorPositionType, PX_PER_SCROLL},
leaks::Tracker,
rect::Rect,
scale::Scale,
@ -22,6 +22,7 @@ use {
},
},
},
CursorPositionType::Motion,
linearize::LinearizeExt,
std::{cell::Cell, rc::Rc},
thiserror::Error,
@ -227,7 +228,7 @@ impl EiDeviceRequestHandler for EiDevice {
if let Some((x, y)) = self.absolute_motion.take() {
let x = Fixed::from_f32(x);
let y = Fixed::from_f32(y);
seat.motion_event_abs(time, x, y);
seat.motion_event_abs(time, x, y, Motion);
}
{
let mut need_frame = false;