tree: fix per-workspace capture tracking
This commit is contained in:
parent
670588fe4d
commit
c6864a6d85
10 changed files with 191 additions and 145 deletions
|
|
@ -148,6 +148,7 @@ impl ConnectorHandler {
|
|||
screencasts: Default::default(),
|
||||
update_render_data_scheduled: Cell::new(false),
|
||||
hardware_cursor_needs_render: Cell::new(false),
|
||||
screencopies: Default::default(),
|
||||
});
|
||||
self.state
|
||||
.add_output_scale(on.global.persistent.scale.get());
|
||||
|
|
@ -235,6 +236,9 @@ impl ConnectorHandler {
|
|||
for sc in screencasts {
|
||||
sc.do_destroy();
|
||||
}
|
||||
for (_, sc) in on.screencopies.lock().drain() {
|
||||
sc.send_failed();
|
||||
}
|
||||
global.destroyed.set(true);
|
||||
self.state.root.outputs.remove(&self.id);
|
||||
self.state.root.update_extents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue