1
0
Fork 0
forked from wry/wry

cli: add pid subcommand

This commit is contained in:
Julian Orth 2026-03-09 22:32:40 +01:00
parent fe8b51ffb6
commit 447dfb3118
7 changed files with 55 additions and 3 deletions

View file

@ -77,7 +77,7 @@ global_base!(JayCompositorGlobal, JayCompositor, JayCompositorError);
impl Global for JayCompositorGlobal {
fn version(&self) -> u32 {
26
27
}
fn required_caps(&self) -> ClientCaps {
@ -533,6 +533,14 @@ impl JayCompositorRequestHandler for JayCompositor {
self.client.add_client_obj(&obj)?;
Ok(())
}
fn get_pid(&self, _req: GetPid, _slf: &Rc<Self>) -> Result<(), Self::Error> {
self.client.event(Pid {
self_id: self.id,
pid: self.client.state.pid,
});
Ok(())
}
}
object_base! {