fix(grid): prevents axis flips on grid layout

This commit is contained in:
Javier Portillo
2024-02-20 09:21:20 -06:00
committed by جاد
parent 9c196b99c9
commit d33df04f38

View File

@@ -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 => {