Don't show the cursor on programmatic movement
Browse files at this commitd3e72245b003cbeed0810bf00c4a445b7c8a652aParent: 13fe9c82 changed files +2 -3
- src/input/mod.rs +1 -0
- src/niri.rs +1 -3
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: granular | 596 | // FIXME: granular |
| 599 | self.niri.queue_redraw_all(); | 597 | self.niri.queue_redraw_all(); |