forge
Explore
Log in

Don't you dare go Hollow

Don't show the cursor on programmatic movement

Browse files at this commit

d3e72245b003cbeed0810bf00c4a445b7c8a652aIvan MolodetskikhParent: 13fe9c8
For keyboard-only use, especially with warp-mouse-to-focus, the
intention is that the cursor stays hidden from keyboard and other
automatic actions, and only shows up with an actual mouse movement.
src/input/mod.rsmodified+1 -0
@@ -2043,6 +2043,7 @@ impl State {
2043 self.move_cursor(pos);2043 self.move_cursor(pos);
2044 }2044 }
2045 2045
2046+ self.niri.pointer_hidden = false;
2046 self.niri.tablet_cursor_location = None;2047 self.niri.tablet_cursor_location = None;
2047 }2048 }
2048 }2049 }
src/niri.rsmodified+1 -3
@@ -591,9 +591,7 @@ impl State {
591 );591 );
592 pointer.frame(self);592 pointer.frame(self);
593 593
594- // We moved the pointer, show it.594+ // We do not show the pointer on programmatic or keyboard movement.
595- self.niri.pointer_hidden = false;
596- self.niri.reset_pointer_inactivity_timer();
597 595
598 // FIXME: granular596 // FIXME: granular
599 self.niri.queue_redraw_all();597 self.niri.queue_redraw_all();