From a56e4ff436cc4f36d7cda89e985d51e37f0b4f78 Mon Sep 17 00:00:00 2001 From: TheAngusMcFire <43189215+TheAngusMcFire@users.noreply.github.com> Date: Fri, 5 Jul 2024 06:55:04 +0200 Subject: 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 --- niri-ipc/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'niri-ipc/src/lib.rs') 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. -- cgit