tree: restore workspaces after monitor reconnect
This commit is contained in:
parent
eaa3b85a97
commit
7476e6f2d9
6 changed files with 80 additions and 9 deletions
|
|
@ -395,6 +395,7 @@ impl State {
|
|||
}
|
||||
let workspace = Rc::new(WorkspaceNode {
|
||||
id: self.node_ids.next(),
|
||||
is_dummy: false,
|
||||
output: CloneCell::new(output.clone()),
|
||||
position: Cell::new(Default::default()),
|
||||
container: Default::default(),
|
||||
|
|
@ -404,6 +405,8 @@ impl State {
|
|||
output_link: Cell::new(None),
|
||||
visible: Cell::new(false),
|
||||
fullscreen: Default::default(),
|
||||
visible_on_desired_output: Cell::new(false),
|
||||
desired_output: CloneCell::new(output.global.output_id.clone()),
|
||||
});
|
||||
workspace
|
||||
.output_link
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue