mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
fix(wm): handle monocled stack cycle commands
This commit is contained in:
@@ -1870,7 +1870,12 @@ impl WindowManager {
|
|||||||
|
|
||||||
tracing::info!("cycling container windows");
|
tracing::info!("cycling container windows");
|
||||||
|
|
||||||
let container = self.focused_container_mut()?;
|
let container =
|
||||||
|
if let Some(container) = self.focused_workspace_mut()?.monocle_container_mut() {
|
||||||
|
container
|
||||||
|
} else {
|
||||||
|
self.focused_container_mut()?
|
||||||
|
};
|
||||||
|
|
||||||
let len = NonZeroUsize::new(container.windows().len())
|
let len = NonZeroUsize::new(container.windows().len())
|
||||||
.ok_or_else(|| anyhow!("there must be at least one window in a container"))?;
|
.ok_or_else(|| anyhow!("there must be at least one window in a container"))?;
|
||||||
@@ -1894,7 +1899,12 @@ impl WindowManager {
|
|||||||
|
|
||||||
tracing::info!("focusing container window at index {idx}");
|
tracing::info!("focusing container window at index {idx}");
|
||||||
|
|
||||||
let container = self.focused_container_mut()?;
|
let container =
|
||||||
|
if let Some(container) = self.focused_workspace_mut()?.monocle_container_mut() {
|
||||||
|
container
|
||||||
|
} else {
|
||||||
|
self.focused_container_mut()?
|
||||||
|
};
|
||||||
|
|
||||||
let len = NonZeroUsize::new(container.windows().len())
|
let len = NonZeroUsize::new(container.windows().len())
|
||||||
.ok_or_else(|| anyhow!("there must be at least one window in a container"))?;
|
.ok_or_else(|| anyhow!("there must be at least one window in a container"))?;
|
||||||
|
|||||||
Reference in New Issue
Block a user