mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Close layer surfaces upon output removal
Fixes https://github.com/YaLTeR/niri/issues/23
This commit is contained in:
@@ -1114,6 +1114,10 @@ impl Niri {
|
||||
}
|
||||
|
||||
pub fn remove_output(&mut self, output: &Output) {
|
||||
for layer in layer_map_for_output(output).layers() {
|
||||
layer.layer_surface().send_close();
|
||||
}
|
||||
|
||||
self.layout.remove_output(output);
|
||||
self.global_space.unmap_output(output);
|
||||
self.reposition_outputs(None);
|
||||
|
||||
Reference in New Issue
Block a user