1
0
Fork 0
forked from wry/wry

autocommit 2022-01-08 18:38:24 CET

This commit is contained in:
Julian Orth 2022-01-08 18:38:24 +01:00
parent 33549184d4
commit d061a5c313
38 changed files with 179 additions and 371 deletions

View file

@ -19,10 +19,9 @@ pub struct WlCompositorGlobal {
}
pub struct WlCompositorObj {
global: Rc<WlCompositorGlobal>,
id: WlCompositorId,
client: Rc<Client>,
version: u32,
_version: u32,
}
impl WlCompositorGlobal {
@ -37,10 +36,9 @@ impl WlCompositorGlobal {
version: u32,
) -> Result<(), WlCompositorError> {
let obj = Rc::new(WlCompositorObj {
global: self,
id,
client: client.clone(),
version,
_version: version,
});
client.add_client_obj(&obj)?;
Ok(())
@ -94,10 +92,6 @@ impl Global for WlCompositorGlobal {
fn version(&self) -> u32 {
4
}
fn pre_remove(&self) {
unreachable!()
}
}
handle_request!(WlCompositorObj);