1
0
Fork 0
forked from wry/wry

wayland: add jay_screencast

This commit is contained in:
Julian Orth 2022-07-30 11:40:15 +02:00
parent 022d8d1db0
commit 5a4e48e54a
14 changed files with 635 additions and 11 deletions

View file

@ -125,6 +125,7 @@ impl ConnectorHandler {
preferred_scale: Cell::new(Fixed::from_int(1)),
hardware_cursor: Default::default(),
jay_outputs: Default::default(),
screencasts: Default::default(),
});
self.state.add_output_scale(on.preferred_scale.get());
let mode = info.initial_mode;
@ -217,6 +218,10 @@ impl ConnectorHandler {
jo.send_destroyed();
jo.output.take();
}
let screencasts: Vec<_> = on.screencasts.lock().values().cloned().collect();
for sc in screencasts {
sc.do_destroy();
}
global.destroyed.set(true);
self.state.root.outputs.remove(&self.id);
self.data.connected.set(false);