diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-17 09:23:32 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-18 19:31:11 +0400 |
| commit | 2984722f80d794af93c02fcadb157d0f8f1cc8a5 (patch) | |
| tree | 6c5f35f6ad85a969ef9431a88a4267470e4af2e3 /src | |
| parent | 118773e17d689b95b4eefd105e3878fd3fe1aab1 (diff) | |
| download | niri-2984722f80d794af93c02fcadb157d0f8f1cc8a5.tar.gz niri-2984722f80d794af93c02fcadb157d0f8f1cc8a5.tar.bz2 niri-2984722f80d794af93c02fcadb157d0f8f1cc8a5.zip | |
Warp mouse only if layout is focused
Diffstat (limited to 'src')
| -rw-r--r-- | src/niri.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/niri.rs b/src/niri.rs index 27d9d59d..13bb4cf0 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -475,6 +475,10 @@ impl State { } pub fn move_cursor_to_focused_tile(&mut self, mode: CenterCoords) -> bool { + if !self.niri.keyboard_focus.is_layout() { + return false; + } + let Some(output) = self.niri.layout.active_output() else { return false; }; |
