Skip to content

Commit

Permalink
fix(wm): disallow focusing other windows when there is a maximized_wi…
Browse files Browse the repository at this point in the history
…ndow
  • Loading branch information
alex-ds13 authored and LGUG2Z committed Nov 21, 2024
1 parent 6893f39 commit 3615451
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions komorebi/src/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1548,11 +1548,12 @@ impl WindowManager {

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

let new_idx = if workspace.monocle_container().is_some() {
None
} else {
workspace.new_idx_for_direction(direction)
};
let new_idx =
if workspace.maximized_window().is_some() || workspace.monocle_container().is_some() {
None
} else {
workspace.new_idx_for_direction(direction)
};

let mut cross_monitor_monocle_or_max = false;

Expand Down

0 comments on commit 3615451

Please sign in to comment.