From 17c23dc50fef82dd0edad376e3536b3f99d4329b Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 21 Dec 2023 16:17:19 +0400 Subject: Update tablet cursor location higher up --- src/input.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input.rs') 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(); -- cgit