1
0
Fork 0
forked from wry/wry

wl_fixes: implement v2

This commit is contained in:
Julian Orth 2026-03-28 15:59:12 +01:00
parent 4955c8d248
commit 218e50c74a
3 changed files with 11 additions and 2 deletions

View file

@ -242,7 +242,7 @@ granted access. See
| wl_compositor | 7 | | | wl_compositor | 7 | |
| wl_data_device_manager | 4 | | | wl_data_device_manager | 4 | |
| wl_drm | 2 | | | wl_drm | 2 | |
| wl_fixes | 1 | | | wl_fixes | 2 | |
| wl_output | 4 | | | wl_output | 4 | |
| wl_seat | 10 | | | wl_seat | 10 | |
| wl_shm | 2 | | | wl_shm | 2 | |

View file

@ -43,7 +43,7 @@ simple_add_global!(WlFixesGlobal);
impl Global for WlFixesGlobal { impl Global for WlFixesGlobal {
fn version(&self) -> u32 { fn version(&self) -> u32 {
1 2
} }
} }
@ -67,6 +67,10 @@ impl WlFixesRequestHandler for WlFixes {
self.client.remove_obj(&*registry)?; self.client.remove_obj(&*registry)?;
Ok(()) Ok(())
} }
fn ack_global_remove(&self, _req: AckGlobalRemove, _slf: &Rc<Self>) -> Result<(), Self::Error> {
Ok(())
}
} }
object_base! { object_base! {

View file

@ -4,3 +4,8 @@ request destroy (destructor) {
request destroy_registry { request destroy_registry {
registry: id(wl_registry), registry: id(wl_registry),
} }
request ack_global_remove (since = 2) {
registry: id(wl_registry),
name: u32,
}