1
0
Fork 0
forked from wry/wry

registry: implement xwayland-only globals

This commit is contained in:
Julian Orth 2022-10-16 21:05:44 +02:00
parent 887fab0936
commit 1f64fefc86
3 changed files with 23 additions and 10 deletions

View file

@ -184,13 +184,13 @@ impl Clients {
}
}
pub fn broadcast<B>(&self, secure: bool, mut f: B)
pub fn broadcast<B>(&self, secure: bool, xwayland_only: bool, mut f: B)
where
B: FnMut(&Rc<Client>),
{
let clients = self.clients.borrow();
for client in clients.values() {
if !secure || client.data.secure {
if (!secure || client.data.secure) && (!xwayland_only || client.data.is_xwayland) {
f(&client.data);
}
}