diff options
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 1b51895c..0c6cf8f3 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -472,6 +472,12 @@ impl State { } fn hide_cursor_if_needed(&mut self) { + // If the pointer is already invisible, don't reset it back to Hidden causing one frame + // of hover. + if !self.niri.pointer_visibility.is_visible() { + return; + } + if !self.niri.config.borrow().cursor.hide_when_typing { return; } |
