aboutsummaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-10-06 20:09:44 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-10-06 22:09:19 -0700
commit1ba2be392857b95ba346ee4770f824c42afe0681 (patch)
treea598a373e998cae1c3ff37da73f842c0f3474ceb /src/input
parent66be00041060ea092d611e8f2506a6ed5b3f2327 (diff)
downloadniri-1ba2be392857b95ba346ee4770f824c42afe0681.tar.gz
niri-1ba2be392857b95ba346ee4770f824c42afe0681.tar.bz2
niri-1ba2be392857b95ba346ee4770f824c42afe0681.zip
Show hidden pointer on mouse press
Feels like this should be the case.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index afa215ff..53781047 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -1469,6 +1469,10 @@ impl State {
let button_state = event.state();
if ButtonState::Pressed == button_state {
+ // We received an event for the regular pointer, so show it now.
+ self.niri.pointer_hidden = false;
+ self.niri.tablet_cursor_location = None;
+
if let Some(mapped) = self.niri.window_under_cursor() {
let window = mapped.window.clone();