1
0
Fork 0
forked from wry/wry

tree: clear output node after connector removal

This commit is contained in:
Julian Orth 2025-07-19 00:01:32 +02:00
parent f7e48e6037
commit 14e64711f1
2 changed files with 4 additions and 0 deletions

View file

@ -404,6 +404,7 @@ impl ConnectorHandler {
}
self.state
.remove_output_scale(on.global.persistent.scale.get());
on.clear();
let _ = self.state.remove_global(&global);
let _ = self.state.remove_global(&tray);
self.state.tree_changed();

View file

@ -446,6 +446,9 @@ impl OutputNode {
self.screencopies.clear();
self.ext_copy_sessions.clear();
self.ext_workspace_groups.clear();
self.latch_event.clear();
self.vblank_event.clear();
self.presentation_event.clear();
}
pub fn on_spaces_changed(self: &Rc<Self>) {