1
0
Fork 0
forked from wry/wry

tree: update outputs of surfaces when moving a workspace

This commit is contained in:
Julian Orth 2022-06-03 16:47:21 +02:00
parent 0ada595bb9
commit 259340938b
2 changed files with 14 additions and 9 deletions

View file

@ -210,7 +210,6 @@ impl ConnectorHandler {
}
global.node.set(None);
global.destroyed.set(true);
let _ = self.state.remove_global(&*global);
self.state.root.outputs.remove(&self.id);
self.data.connected.set(false);
self.state.outputs.remove(&self.id);
@ -252,5 +251,6 @@ impl ConnectorHandler {
dev.connectors.remove(&self.id);
}
self.state.remove_output_scale(on.preferred_scale.get());
let _ = self.state.remove_global(&*global);
}
}