aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-10-29 12:55:31 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-10-29 21:52:03 -0700
commitd3e72245b003cbeed0810bf00c4a445b7c8a652a (patch)
tree1d4f6c3c0d37d49d0110f67a58d34fc5be846fbd /src/niri.rs
parent13fe9c8ac362c5e9c7796a409be591518ce4190f (diff)
downloadniri-d3e72245b003cbeed0810bf00c4a445b7c8a652a.tar.gz
niri-d3e72245b003cbeed0810bf00c4a445b7c8a652a.tar.bz2
niri-d3e72245b003cbeed0810bf00c4a445b7c8a652a.zip
Don't show the cursor on programmatic movement
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.
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 851bb25a..0993661b 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -591,9 +591,7 @@ impl State {
);
pointer.frame(self);
- // We moved the pointer, show it.
- self.niri.pointer_hidden = false;
- self.niri.reset_pointer_inactivity_timer();
+ // We do not show the pointer on programmatic or keyboard movement.
// FIXME: granular
self.niri.queue_redraw_all();