(&mut self, window: Rc<RefCell<StrataWindow>>)
| 104 | } |
| 105 | |
| 106 | pub fn add_window(&mut self, window: Rc<RefCell<StrataWindow>>) { |
| 107 | self.windows.retain(|w| w.borrow().smithay_window != window.borrow().smithay_window); |
| 108 | self.windows.push(window.clone()); |
| 109 | self.layout_tree.insert(window, self.layout_tree.next_split(), 0.5); |
| 110 | refresh_geometry(self); |
| 111 | } |
| 112 | |
| 113 | pub fn remove_window(&mut self, window: &Window) -> Option<Rc<RefCell<StrataWindow>>> { |
| 114 | let mut removed = None; |
no test coverage detected