Merge pull request #167 from pop-os/relative-pointer_jammy
Send `relative_pointer` in frame with `pointer`; update Smithay
This commit is contained in:
commit
bc3c304b12
3 changed files with 14 additions and 12 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -3761,7 +3761,7 @@ checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smithay"
|
name = "smithay"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
source = "git+https://github.com/smithay//smithay?rev=36a0ec69b1#36a0ec69b1a2331b1a2d0e046b026cb85d7d132c"
|
source = "git+https://github.com/smithay//smithay?rev=1a61e1c13a#1a61e1c13a8d6996e28741a5ecdb09af4981c17d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"appendlist",
|
"appendlist",
|
||||||
"ash",
|
"ash",
|
||||||
|
|
|
||||||
|
|
@ -87,4 +87,4 @@ debug = true
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
|
|
||||||
[patch."https://github.com/Smithay/smithay.git"]
|
[patch."https://github.com/Smithay/smithay.git"]
|
||||||
smithay = { git = "https://github.com/smithay//smithay", rev = "36a0ec69b1" }
|
smithay = { git = "https://github.com/smithay//smithay", rev = "1a61e1c13a" }
|
||||||
|
|
|
||||||
|
|
@ -498,24 +498,26 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let ptr = seat.get_pointer().unwrap();
|
let ptr = seat.get_pointer().unwrap();
|
||||||
ptr.motion(
|
// Relative motion is sent first to ensure they're part of a `frame`
|
||||||
self,
|
// TODO: Find more correct solution
|
||||||
under.clone(),
|
|
||||||
&MotionEvent {
|
|
||||||
location: position,
|
|
||||||
serial,
|
|
||||||
time: event.time_msec(),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
ptr.relative_motion(
|
ptr.relative_motion(
|
||||||
self,
|
self,
|
||||||
under,
|
under.clone(),
|
||||||
&RelativeMotionEvent {
|
&RelativeMotionEvent {
|
||||||
delta: event.delta(),
|
delta: event.delta(),
|
||||||
delta_unaccel: event.delta_unaccel(),
|
delta_unaccel: event.delta_unaccel(),
|
||||||
utime: event.time(),
|
utime: event.time(),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
ptr.motion(
|
||||||
|
self,
|
||||||
|
under,
|
||||||
|
&MotionEvent {
|
||||||
|
location: position,
|
||||||
|
serial,
|
||||||
|
time: event.time_msec(),
|
||||||
|
},
|
||||||
|
);
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
if self.common.seats().position(|x| x == &seat).unwrap() == 0 {
|
if self.common.seats().position(|x| x == &seat).unwrap() == 0 {
|
||||||
let location = if let Some(output) = self.common.shell.outputs.first() {
|
let location = if let Some(output) = self.common.shell.outputs.first() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue