mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add the beginnings of window rules
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user