1
0
Fork 0
forked from wry/wry

config: add xwayland client criteria

This commit is contained in:
Julian Orth 2025-05-03 12:55:22 +02:00
parent a952e658da
commit bdabb7bbdd
13 changed files with 47 additions and 1 deletions

View file

@ -84,6 +84,7 @@ pub enum ClientCriterionIpc {
Sandboxed,
Uid(i32),
Pid(i32),
IsXwayland,
}
#[derive(Serialize, Deserialize, Clone, Debug, Hash, Eq, PartialEq)]

View file

@ -1544,6 +1544,7 @@ impl ConfigClient {
ClientCriterion::Sandboxed => ClientCriterionIpc::Sandboxed,
ClientCriterion::Uid(p) => ClientCriterionIpc::Uid(p),
ClientCriterion::Pid(p) => ClientCriterionIpc::Pid(p),
ClientCriterion::IsXwayland => ClientCriterionIpc::IsXwayland,
};
let res = self.send_with_response(&ClientMessage::CreateClientMatcher { criterion });
get_response!(

View file

@ -81,6 +81,8 @@ pub enum ClientCriterion<'a> {
Uid(i32),
/// Matches the process ID of the client.
Pid(i32),
/// Matches if the client is Xwayland.
IsXwayland,
}
impl ClientCriterion<'_> {