input: Move windows between workspaces

This commit is contained in:
Victoria Brekenfeld 2022-03-30 22:11:29 +02:00
parent 5b2ea80c50
commit f7ac9654d1
6 changed files with 38 additions and 4 deletions

View file

@ -54,6 +54,10 @@ impl Layout for FloatingLayout {
// TODO make sure all windows are still visible on any output or move them
}
fn unmap_window(&mut self, space: &mut Space, window: &Window) {
space.unmap_window(window)
}
fn maximize_request(&mut self, space: &mut Space, window: &Window, output: &Output) {
let layers = layer_map_for_output(&output);
let geometry = layers.non_exclusive_zone();

View file

@ -32,7 +32,7 @@ pub trait Layout {
focus_stack: Box<dyn Iterator<Item = &'a Window> + 'a>,
); //working around object safety..
fn refresh(&mut self, space: &mut Space);
//fn unmap_window(&mut self, space: &mut Space, window: &Window);
fn unmap_window(&mut self, space: &mut Space, window: &Window);
fn update_orientation<'a>(
&mut self,

View file

@ -200,6 +200,12 @@ impl Layout for TilingLayout {
}
}
fn unmap_window(&mut self, space: &mut Space, window: &Window) {
self.unmap_window(&window);
space.unmap_window(&window);
self.refresh(space);
}
fn resize_request(
&mut self,
_space: &mut Space,