mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-20 02:36:55 +02:00
fix(wm): add bounds checks on max window creation
This commit ensures that the bounds of the resize_dimensions member on a workspace are checked before attempting removal when maximizing a window using the toggle-maximize command or cycle-focus commands. fix #331
This commit is contained in:
@@ -856,7 +856,9 @@ impl Workspace {
|
||||
|
||||
if container.windows().is_empty() {
|
||||
self.containers_mut().remove(focused_idx);
|
||||
self.resize_dimensions_mut().remove(focused_idx);
|
||||
if self.resize_dimensions().get(focused_idx).is_some() {
|
||||
self.resize_dimensions_mut().remove(focused_idx);
|
||||
}
|
||||
} else {
|
||||
container.load_focused_window();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user