diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-09 10:41:19 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-09 10:49:24 +0300 |
| commit | 8412bfb8136544549e3174fd48859d0be0090c78 (patch) | |
| tree | 3e6fa2e0db38b6672da7c3ba95e5cd35af9fcfcf | |
| parent | a0f279691a739a8592841af4b73701508f345218 (diff) | |
| download | niri-8412bfb8136544549e3174fd48859d0be0090c78.tar.gz niri-8412bfb8136544549e3174fd48859d0be0090c78.tar.bz2 niri-8412bfb8136544549e3174fd48859d0be0090c78.zip | |
Add missing cursor warp when focusing floating/tiling
| -rw-r--r-- | src/input/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 1a64930f..263f533d 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -1469,16 +1469,19 @@ impl State { } Action::FocusFloating => { self.niri.layout.focus_floating(); + self.maybe_warp_cursor_to_focus(); // FIXME: granular self.niri.queue_redraw_all(); } Action::FocusTiling => { self.niri.layout.focus_tiling(); + self.maybe_warp_cursor_to_focus(); // FIXME: granular self.niri.queue_redraw_all(); } Action::SwitchFocusBetweenFloatingAndTiling => { self.niri.layout.switch_focus_floating_tiling(); + self.maybe_warp_cursor_to_focus(); // FIXME: granular self.niri.queue_redraw_all(); } |
