diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-05 17:18:21 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-05 17:25:57 +0300 |
| commit | a444efd0ebee8e203877daedc7bc65584f72daba (patch) | |
| tree | 2ca010493711213ee3faced62b63a62048f37bad /src/input/mod.rs | |
| parent | c41f93a468c4d04e16f8c89736cc48cd4ab4c623 (diff) | |
| download | niri-a444efd0ebee8e203877daedc7bc65584f72daba.tar.gz niri-a444efd0ebee8e203877daedc7bc65584f72daba.tar.bz2 niri-a444efd0ebee8e203877daedc7bc65584f72daba.zip | |
Add focus-window-in-column (by index) action
Diffstat (limited to 'src/input/mod.rs')
| -rw-r--r-- | src/input/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 9f5f363c..5c3df990 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -681,6 +681,13 @@ impl State { self.focus_window(&window); } } + Action::FocusWindowInColumn(index) => { + self.niri.layout.focus_window_in_column(index); + self.maybe_warp_cursor_to_focus(); + self.niri.layer_shell_on_demand_focus = None; + // FIXME: granular + self.niri.queue_redraw_all(); + } Action::FocusWindowPrevious => { if let Some(window) = self.niri.previously_focused_window.clone() { self.focus_window(&window); |
