aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-10 09:58:26 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-10 14:50:51 +0400
commit9b073b2350d00dfdb32a4983a102c4bde843c92c (patch)
tree4144883e824f80f4ffa1aa1509128a6371ffab4e /src/input.rs
parented6132645a4cb5eefafe39333bc7d8d8abd2acf6 (diff)
downloadniri-9b073b2350d00dfdb32a4983a102c4bde843c92c.tar.gz
niri-9b073b2350d00dfdb32a4983a102c4bde843c92c.tar.bz2
niri-9b073b2350d00dfdb32a4983a102c4bde843c92c.zip
Redraw on demand rather than continuously
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 011378db..a8f85b3a 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -89,6 +89,9 @@ impl Niri {
utime: event.time(),
},
);
+
+ // Redraw to update the cursor position.
+ self.queue_redraw();
}
InputEvent::PointerMotionAbsolute { event, .. } => {
let output = self.space.outputs().next().unwrap();
@@ -112,6 +115,9 @@ impl Niri {
time: event.time_msec(),
},
);
+
+ // Redraw to update the cursor position.
+ self.queue_redraw();
}
InputEvent::PointerButton { event, .. } => {
let pointer = self.seat.get_pointer().unwrap();