aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-12-21 16:17:19 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-12-21 16:17:19 +0400
commit17c23dc50fef82dd0edad376e3536b3f99d4329b (patch)
treef28e6418048403591dd295aa84809956e91c5e25
parent5b1de86d336f7d617f98048fe4318061320d6a29 (diff)
downloadniri-17c23dc50fef82dd0edad376e3536b3f99d4329b.tar.gz
niri-17c23dc50fef82dd0edad376e3536b3f99d4329b.tar.bz2
niri-17c23dc50fef82dd0edad376e3536b3f99d4329b.zip
Update tablet cursor location higher up
-rw-r--r--src/input.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input.rs b/src/input.rs
index cb97800e..3cdd09c2 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -506,6 +506,9 @@ impl State {
// We have an output, so we can compute the new location and focus.
let mut new_pos = pos + event.delta();
+ // We received an event for the regular pointer, so show it now.
+ self.niri.tablet_cursor_location = None;
+
if self
.niri
.global_space
@@ -574,9 +577,6 @@ impl State {
pointer.frame(self);
- // We moved the regular pointer, so show it now.
- self.niri.tablet_cursor_location = None;
-
// Redraw to update the cursor position.
// FIXME: redraw only outputs overlapping the cursor.
self.niri.queue_redraw_all();