Skip to content

Commit

Permalink
fix(wm): no directional focus for monocle + max
Browse files Browse the repository at this point in the history
This commit ensures that directional focus commands are not processed
when a monocle container or maximized window is present on a workspace.

fix #819
  • Loading branch information
LGUG2Z committed May 12, 2024
1 parent 07b2da6 commit e4bc74f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions komorebi/src/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,11 @@ impl WindowManager {

let workspace = self.focused_workspace()?;

// Do not proceed if we have a monocle container or maximized window
if workspace.monocle_container().is_some() || workspace.maximized_window().is_some() {
return Ok(());
}

tracing::info!("focusing container");

let new_idx = workspace.new_idx_for_direction(direction);
Expand Down

0 comments on commit e4bc74f

Please sign in to comment.