mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-24 10:21:21 +01:00
fix(wm): no directional focus for monocle + max
This commit ensures that directional focus commands are not processed when a monocle container or maximized window is present on a workspace. fix #819
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user