1
0
Fork 0
forked from wry/wry

cli: add command to restart the compositor in place

This commit is contained in:
Julian Orth 2025-04-24 14:51:32 +02:00
parent fd1e260877
commit 2edfb29f2b
8 changed files with 186 additions and 3 deletions

View file

@ -12,6 +12,7 @@ use {
jay_output::JayOutput,
jay_pointer::JayPointer,
jay_randr::JayRandr,
jay_reexec::JayReexec,
jay_render_ctx::JayRenderCtx,
jay_screencast::JayScreencast,
jay_screenshot::JayScreenshot,
@ -73,7 +74,7 @@ impl Global for JayCompositorGlobal {
}
fn version(&self) -> u32 {
16
17
}
fn required_caps(&self) -> ClientCaps {
@ -456,6 +457,19 @@ impl JayCompositorRequestHandler for JayCompositor {
self.client.add_client_obj(&obj)?;
Ok(())
}
fn reexec(&self, req: Reexec, _slf: &Rc<Self>) -> Result<(), Self::Error> {
let obj = Rc::new(JayReexec {
id: req.id,
client: self.client.clone(),
tracker: Default::default(),
version: self.version,
args: Default::default(),
});
track!(self.client, obj);
self.client.add_client_obj(&obj)?;
Ok(())
}
}
object_base! {