Use monotonic time instead of 0 for motion events
Update to https://github.com/Smithay/smithay/pull/1509, and adopt a similar change.
This commit is contained in:
parent
ca6f05c585
commit
3625454420
7 changed files with 11 additions and 11 deletions
|
|
@ -500,7 +500,7 @@ fn update_pointer_focus(state: &mut State, seat: &Seat<State>) {
|
|||
&MotionEvent {
|
||||
location: pointer.current_location(),
|
||||
serial: SERIAL_COUNTER.next_serial(),
|
||||
time: 0,
|
||||
time: state.common.clock.now().as_millis(),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ pub fn window_items(
|
|||
&MotionEvent {
|
||||
location: loc.as_logical().to_f64(),
|
||||
serial,
|
||||
time: 0,
|
||||
time: state.common.clock.now().as_millis(),
|
||||
},
|
||||
);
|
||||
pointer.frame(state);
|
||||
|
|
@ -332,7 +332,7 @@ pub fn window_items(
|
|||
&MotionEvent {
|
||||
location: loc.as_logical().to_f64(),
|
||||
serial,
|
||||
time: 0,
|
||||
time: state.common.clock.now().as_millis(),
|
||||
},
|
||||
);
|
||||
pointer.frame(state);
|
||||
|
|
@ -363,7 +363,7 @@ pub fn window_items(
|
|||
&MotionEvent {
|
||||
location: loc.as_logical().to_f64(),
|
||||
serial,
|
||||
time: 0,
|
||||
time: state.common.clock.now().as_millis(),
|
||||
},
|
||||
);
|
||||
pointer.frame(state);
|
||||
|
|
@ -394,7 +394,7 @@ pub fn window_items(
|
|||
&MotionEvent {
|
||||
location: loc.as_logical().to_f64(),
|
||||
serial,
|
||||
time: 0,
|
||||
time: state.common.clock.now().as_millis(),
|
||||
},
|
||||
);
|
||||
pointer.frame(state);
|
||||
|
|
|
|||
|
|
@ -872,7 +872,7 @@ impl Drop for MoveGrab {
|
|||
&MotionEvent {
|
||||
location: pointer.current_location(),
|
||||
serial,
|
||||
time: 0,
|
||||
time: state.common.clock.now().as_millis(),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue