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

@ -46,7 +46,7 @@ impl WlRegistry {
let bind: Bind = self.client.parse(self, parser)?;
let name = GlobalName::from_raw(bind.name);
let globals = &self.client.state.globals;
let global = globals.get(name, self.client.secure)?;
let global = globals.get(name, self.client.secure, self.client.is_xwayland)?;
if global.interface().name() != bind.interface {
return Err(WlRegistryError::InvalidInterface(InterfaceError {
name: global.name(),