mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-13 14:19:56 +02:00
@@ -340,8 +340,15 @@ impl Workspace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn remove_container_by_idx(&mut self, idx: usize) -> Option<Container> {
|
fn remove_container_by_idx(&mut self, idx: usize) -> Option<Container> {
|
||||||
self.resize_dimensions_mut().remove(idx);
|
if idx < self.resize_dimensions().len() {
|
||||||
self.containers_mut().remove(idx)
|
self.resize_dimensions_mut().remove(idx);
|
||||||
|
}
|
||||||
|
|
||||||
|
if idx < self.containers().len() {
|
||||||
|
return self.containers_mut().remove(idx);
|
||||||
|
}
|
||||||
|
|
||||||
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn container_idx_for_window(&self, hwnd: isize) -> Option<usize> {
|
fn container_idx_for_window(&self, hwnd: isize) -> Option<usize> {
|
||||||
|
|||||||
Reference in New Issue
Block a user