Skip to content

Commit

Permalink
fix(grid): prevents axis flips on grid layout
Browse files Browse the repository at this point in the history
  • Loading branch information
javierportillo authored and LGUG2Z committed Feb 25, 2024
1 parent 9c196b9 commit d33df04
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions komorebi/src/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1662,6 +1662,15 @@ impl WindowManager {

let workspace = self.focused_workspace_mut()?;

// don't flip on Grid layout
match workspace.layout() {
Layout::Default(layout) => match layout {
DefaultLayout::Grid => return Ok(()),
_ => (),
},
_ => (),
}

#[allow(clippy::match_same_arms)]
match workspace.layout_flip() {
None => {
Expand Down

0 comments on commit d33df04

Please sign in to comment.