forge
Explore
Log in

Don't you dare go Hollow

Update tablet cursor location higher up

Browse files at this commit

17c23dc50fef82dd0edad376e3536b3f99d4329bIvan MolodetskikhParent: 5b1de86
src/input.rsmodified+3 -3
@@ -506,6 +506,9 @@ impl State {
506 // We have an output, so we can compute the new location and focus.506 // We have an output, so we can compute the new location and focus.
507 let mut new_pos = pos + event.delta();507 let mut new_pos = pos + event.delta();
508 508
509+ // We received an event for the regular pointer, so show it now.
510+ self.niri.tablet_cursor_location = None;
511+
509 if self512 if self
510 .niri513 .niri
511 .global_space514 .global_space
@@ -574,9 +577,6 @@ impl State {
574 577
575 pointer.frame(self);578 pointer.frame(self);
576 579
577- // We moved the regular pointer, so show it now.
578- self.niri.tablet_cursor_location = None;
579-
580 // Redraw to update the cursor position.580 // Redraw to update the cursor position.
581 // FIXME: redraw only outputs overlapping the cursor.581 // FIXME: redraw only outputs overlapping the cursor.
582 self.niri.queue_redraw_all();582 self.niri.queue_redraw_all();