diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-09 09:18:22 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-09 10:28:20 +0300 |
| commit | e2b9838d8944c0a2e30da7ba4c1c69dd25abc243 (patch) | |
| tree | 5774879c4c4db16152cc9428a04d4959ebbc5bd8 | |
| parent | 816a0d479c4f78397b1de105df7718b16faf0ea8 (diff) | |
| download | niri-e2b9838d8944c0a2e30da7ba4c1c69dd25abc243.tar.gz niri-e2b9838d8944c0a2e30da7ba4c1c69dd25abc243.tar.bz2 niri-e2b9838d8944c0a2e30da7ba4c1c69dd25abc243.zip | |
Extract evt.slot()
| -rw-r--r-- | src/input/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index bf57745d..c9d2c4f2 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -3542,6 +3542,7 @@ impl State { let Some(pos) = self.compute_touch_location(&evt) else { return; }; + let slot = evt.slot(); let serial = SERIAL_COUNTER.next_serial(); @@ -3571,7 +3572,7 @@ impl State { let start_data = TouchGrabStartData { focus: None, - slot: evt.slot(), + slot, location: pos, }; let start_timestamp = Duration::from_micros(evt.time()); @@ -3600,7 +3601,7 @@ impl State { ) { let start_data = TouchGrabStartData { focus: None, - slot: evt.slot(), + slot, location: pos, }; let grab = TouchMoveGrab::new(start_data, window.clone()); @@ -3623,7 +3624,7 @@ impl State { self, under.surface, &DownEvent { - slot: evt.slot(), + slot, location: pos, serial, time: evt.time_msec(), |
