mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
fix(wm): stop wrongfully removing layout-flip
This commit removes the code on the workspace `update` on `layout-rules` where it was setting the `layout-flip` to `None` if the layout was different from `BSP`. This appears to be some old code when the layout-flip would only apply to the `BSP` layout. However now it appears to apply to all layouts so this code shouldn't exist. This commit also changes the docs from the `FlipLayout` command to remove the statement that only applied to `BSP` since it is no longer true.
This commit is contained in:
@@ -333,10 +333,6 @@ impl Workspace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(updated_layout) = updated_layout {
|
if let Some(updated_layout) = updated_layout {
|
||||||
if !matches!(updated_layout, Layout::Default(DefaultLayout::BSP)) {
|
|
||||||
self.set_layout_flip(None);
|
|
||||||
}
|
|
||||||
|
|
||||||
self.set_layout(updated_layout);
|
self.set_layout(updated_layout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1175,7 +1175,7 @@ enum SubCommand {
|
|||||||
#[clap(hide = true)]
|
#[clap(hide = true)]
|
||||||
#[clap(arg_required_else_help = true)]
|
#[clap(arg_required_else_help = true)]
|
||||||
LoadCustomLayout(LoadCustomLayout),
|
LoadCustomLayout(LoadCustomLayout),
|
||||||
/// Flip the layout on the focused workspace (BSP only)
|
/// Flip the layout on the focused workspace
|
||||||
#[clap(arg_required_else_help = true)]
|
#[clap(arg_required_else_help = true)]
|
||||||
FlipLayout(FlipLayout),
|
FlipLayout(FlipLayout),
|
||||||
/// Promote the focused window to the top of the tree
|
/// Promote the focused window to the top of the tree
|
||||||
|
|||||||
Reference in New Issue
Block a user