registry: implement xwayland-only globals
This commit is contained in:
parent
887fab0936
commit
1f64fefc86
3 changed files with 23 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue