aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-09-24 11:04:30 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-09-26 13:45:03 +0400
commitc422fdab0fd19f61ee5ad73a46312d4284641f3c (patch)
tree46b676c5d81845bcebae397c330d41f2c0e8a099 /src/input.rs
parentf58e56d65ab0c41facc72b75e8a85d64b54963ef (diff)
downloadniri-c422fdab0fd19f61ee5ad73a46312d4284641f3c.tar.gz
niri-c422fdab0fd19f61ee5ad73a46312d4284641f3c.tar.bz2
niri-c422fdab0fd19f61ee5ad73a46312d4284641f3c.zip
Update Smithay
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs
index 3cc13a5f..888bf785 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -43,7 +43,7 @@ fn action(
// Handle hardcoded binds.
#[allow(non_upper_case_globals)] // wat
- match keysym.modified_sym() {
+ match keysym.modified_sym().raw() {
modified @ KEY_XF86Switch_VT_1..=KEY_XF86Switch_VT_12 => {
let vt = (modified - KEY_XF86Switch_VT_1 + 1) as i32;
return Action::ChangeVt(vt);
@@ -383,6 +383,8 @@ impl State {
},
);
+ pointer.frame(self);
+
// Redraw to update the cursor position.
// FIXME: redraw only outputs overlapping the cursor.
self.niri.queue_redraw_all();
@@ -412,6 +414,8 @@ impl State {
},
);
+ pointer.frame(self);
+
// Redraw to update the cursor position.
// FIXME: redraw only outputs overlapping the cursor.
self.niri.queue_redraw_all();
@@ -479,7 +483,9 @@ impl State {
}
}
- self.niri.seat.get_pointer().unwrap().axis(self, frame);
+ let pointer = &self.niri.seat.get_pointer().unwrap();
+ pointer.axis(self, frame);
+ pointer.frame(self);
}
InputEvent::TabletToolAxis { event, .. } => {
// FIXME: allow mapping tablet to different outputs.
@@ -506,6 +512,7 @@ impl State {
time: event.time_msec(),
},
);
+ pointer.frame(self);
let tablet_seat = self.niri.seat.tablet_seat();
let tablet = tablet_seat.get_tablet(&TabletDescriptor::from(&event.device()));
@@ -593,6 +600,7 @@ impl State {
time: event.time_msec(),
},
);
+ pointer.frame(self);
let tablet_seat = self.niri.seat.tablet_seat();
let tool = tablet_seat.add_tool::<Self>(&self.niri.display_handle, &event.tool());