aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
authorTheAngusMcFire <43189215+TheAngusMcFire@users.noreply.github.com>2024-07-05 06:55:04 +0200
committerGitHub <noreply@github.com>2024-07-05 04:55:04 +0000
commita56e4ff436cc4f36d7cda89e985d51e37f0b4f78 (patch)
tree30b5b4b5385173c72042d64ec73660b9f85098d2 /niri-ipc/src
parent9dcc9160b3b4be6c44672e8579e1e7107453c8b7 (diff)
downloadniri-a56e4ff436cc4f36d7cda89e985d51e37f0b4f78.tar.gz
niri-a56e4ff436cc4f36d7cda89e985d51e37f0b4f78.tar.bz2
niri-a56e4ff436cc4f36d7cda89e985d51e37f0b4f78.zip
Added Commnads to focus windows or Monitors above/below the active window (#497)
* Implement focus-window-up/down-or-monitor calls * Fixed wrong naming of focus-window-or-monitor commands * fix copy pase errors for focusing direction * Fixed wrong behaviour when the current workspace is empty * Cleanup navigation code to reduce complexity * Fix wrong comments and add testcases for FocusWindowOrMonitorUp/Down --------- Co-authored-by: Christian Rieger <christian.rieger@student.tugraz.at>
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 572b4a83..931898bd 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -120,6 +120,10 @@ pub enum Action {
FocusColumnRightOrFirst,
/// Focus the next column to the left, looping if at start.
FocusColumnLeftOrLast,
+ /// Focus the window or the monitor above.
+ FocusWindowOrMonitorUp,
+ /// Focus the window or the monitor below.
+ FocusWindowOrMonitorDown,
/// Focus the column or the monitor to the left.
FocusColumnOrMonitorLeft,
/// Focus the column or the monitor to the right.