mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Extract evt.slot()
This commit is contained in:
+4
-3
@@ -3542,6 +3542,7 @@ impl State {
|
|||||||
let Some(pos) = self.compute_touch_location(&evt) else {
|
let Some(pos) = self.compute_touch_location(&evt) else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
let slot = evt.slot();
|
||||||
|
|
||||||
let serial = SERIAL_COUNTER.next_serial();
|
let serial = SERIAL_COUNTER.next_serial();
|
||||||
|
|
||||||
@@ -3571,7 +3572,7 @@ impl State {
|
|||||||
|
|
||||||
let start_data = TouchGrabStartData {
|
let start_data = TouchGrabStartData {
|
||||||
focus: None,
|
focus: None,
|
||||||
slot: evt.slot(),
|
slot,
|
||||||
location: pos,
|
location: pos,
|
||||||
};
|
};
|
||||||
let start_timestamp = Duration::from_micros(evt.time());
|
let start_timestamp = Duration::from_micros(evt.time());
|
||||||
@@ -3600,7 +3601,7 @@ impl State {
|
|||||||
) {
|
) {
|
||||||
let start_data = TouchGrabStartData {
|
let start_data = TouchGrabStartData {
|
||||||
focus: None,
|
focus: None,
|
||||||
slot: evt.slot(),
|
slot,
|
||||||
location: pos,
|
location: pos,
|
||||||
};
|
};
|
||||||
let grab = TouchMoveGrab::new(start_data, window.clone());
|
let grab = TouchMoveGrab::new(start_data, window.clone());
|
||||||
@@ -3623,7 +3624,7 @@ impl State {
|
|||||||
self,
|
self,
|
||||||
under.surface,
|
under.surface,
|
||||||
&DownEvent {
|
&DownEvent {
|
||||||
slot: evt.slot(),
|
slot,
|
||||||
location: pos,
|
location: pos,
|
||||||
serial,
|
serial,
|
||||||
time: evt.time_msec(),
|
time: evt.time_msec(),
|
||||||
|
|||||||
Reference in New Issue
Block a user