fix(grid): enables flip_layout and make it behave correctly

This commit is contained in:
Javier Portillo
2024-02-24 23:05:47 -06:00
committed by جاد
parent 98244b9572
commit eab7a64250
2 changed files with 19 additions and 8 deletions
-5
View File
@@ -1658,11 +1658,6 @@ impl WindowManager {
pub fn flip_layout(&mut self, layout_flip: Axis) -> Result<()> {
let workspace = self.focused_workspace_mut()?;
if matches!(workspace.layout(), Layout::Default(DefaultLayout::Grid)) {
tracing::debug!("ignoring flip layout command for grid layout");
return Ok(())
}
tracing::info!("flipping layout");
#[allow(clippy::match_same_arms)]