cli: print client tags
This commit is contained in:
parent
75400e672d
commit
596909cd25
6 changed files with 22 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ use {
|
|||
jay_client_query::{
|
||||
AddAll, AddId, Comm, Destroy, Done, End, Exe, Execute, IsXwayland,
|
||||
JayClientQueryRequestHandler, Pid, SandboxAppId, SandboxEngine, SandboxInstanceId,
|
||||
Sandboxed, Start, Uid,
|
||||
Sandboxed, Start, Tag, Uid,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -26,6 +26,8 @@ pub struct JayClientQuery {
|
|||
all: Cell<bool>,
|
||||
}
|
||||
|
||||
const TAG_SINCE: Version = Version(25);
|
||||
|
||||
impl JayClientQuery {
|
||||
pub fn new(client: &Rc<Client>, id: JayClientQueryId, version: Version) -> Self {
|
||||
Self {
|
||||
|
|
@ -95,6 +97,14 @@ impl JayClientQueryRequestHandler for JayClientQuery {
|
|||
instance_id,
|
||||
});
|
||||
}
|
||||
if self.version >= TAG_SINCE
|
||||
&& let Some(tag) = &client.acceptor.tag
|
||||
{
|
||||
self.client.event(Tag {
|
||||
self_id: self.id,
|
||||
tag,
|
||||
});
|
||||
}
|
||||
self.client.event(End { self_id: self.id });
|
||||
};
|
||||
if self.all.get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue