aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-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();