seat: don't set CURSOR_MOVED flag for warps
This commit is contained in:
parent
320246a6d7
commit
7e923fef8b
3 changed files with 34 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue