1
0
Fork 0
forked from wry/wry

cli: add commands to inspect clients

This commit is contained in:
Julian Orth 2025-05-06 18:12:57 +02:00
parent 5e3465d861
commit bd04b09171
12 changed files with 557 additions and 16 deletions

View file

@ -11,6 +11,7 @@ use {
};
pub const ID_SINCE: Version = Version(12);
pub const CLIENT_ID_SINCE: Version = Version(18);
pub struct JayToplevel {
pub id: JayToplevelId,
@ -47,6 +48,15 @@ impl JayToplevel {
})
}
pub fn send_client_id(&self) {
if let Some(cl) = &self.toplevel.tl_data().client {
self.client.event(ClientId {
self_id: self.id,
id: cl.id.raw(),
})
}
}
pub fn send_done(&self) {
self.client.event(Done { self_id: self.id })
}