Skip to content

Commit

Permalink
focus: Don't swap focus from maximized tiled windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Aug 8, 2024
1 parent f9d3914 commit 7660f7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2689,6 +2689,10 @@ impl Shell {
}

if workspace.is_tiled(&focused) {
if focused.is_maximized(false) {
return FocusResult::None;
}

let focus_stack = workspace.focus_stack.get(seat);
let swap_desc = match overview.active_trigger() {
Some(Trigger::KeyboardSwap(_, desc)) => Some(desc.clone()),
Expand Down

0 comments on commit 7660f7a

Please sign in to comment.