Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed May 19, 2024
1 parent bdf66cc commit 57825db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions komorebi/src/process_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ impl WindowManager {
}
}

if workspace_contains_window && workspace_has_monocle_container {
self.toggle_monocle()?;
window.focus(self.mouse_follows_focus)?;
if matches!(event, WindowManagerEvent::Uncloak(_, _)) {
if workspace_contains_window && workspace_has_monocle_container {
self.toggle_monocle()?;
window.focus(self.mouse_follows_focus)?;
}
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion komorebi/src/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,11 @@ impl WindowManager {

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

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

let mut cross_monitor_monocle = false;

Expand Down

0 comments on commit 57825db

Please sign in to comment.