Add the beginnings of window rules

This commit is contained in:
Ivan Molodetskikh
2024-02-13 17:46:37 +04:00
parent 7960a73e9d
commit befdebfa03
10 changed files with 320 additions and 24 deletions
+3 -2
View File
@@ -143,7 +143,8 @@ impl Layout {
}
fn add_window(&mut self, window: TestWindow, width: Option<ColumnWidth>) {
self.layout.add_window(window.clone(), width, false);
self.layout
.add_window(window.clone(), width.map(Some), false);
if window.communicate() {
self.layout.update_window(&window);
}
@@ -157,7 +158,7 @@ impl Layout {
width: Option<ColumnWidth>,
) {
self.layout
.add_window_right_of(right_of, window.clone(), width, false);
.add_window_right_of(right_of, window.clone(), width.map(Some), false);
if window.communicate() {
self.layout.update_window(&window);
}