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>
This commit is contained in:
TheAngusMcFire
2024-07-05 06:55:04 +02:00
committed by GitHub
parent 9dcc9160b3
commit a56e4ff436
4 changed files with 101 additions and 0 deletions
+4
View File
@@ -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.