wl_data_device_manager: implement version 4
This commit is contained in:
parent
01fc2f128d
commit
e8875a3199
3 changed files with 10 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ Jay supports the following wayland protocols:
|
|||
| jay_tray_v1 | 1 | |
|
||||
| org_kde_kwin_server_decoration_manager | 1 | |
|
||||
| wl_compositor | 6 | |
|
||||
| wl_data_device_manager | 3 | |
|
||||
| wl_data_device_manager | 4 | |
|
||||
| wl_drm | 2 | |
|
||||
| wl_fixes | 1 | |
|
||||
| wl_output | 4 | |
|
||||
|
|
|
|||
|
|
@ -81,6 +81,11 @@ impl WlDataDeviceManagerRequestHandler for WlDataDeviceManager {
|
|||
self.client.add_client_obj(&dev)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn release(&self, _req: Release, _slf: &Rc<Self>) -> Result<(), Self::Error> {
|
||||
self.client.remove_obj(self)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
global_base!(
|
||||
|
|
@ -95,7 +100,7 @@ impl Global for WlDataDeviceManagerGlobal {
|
|||
}
|
||||
|
||||
fn version(&self) -> u32 {
|
||||
3
|
||||
4
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,3 +6,6 @@ request get_data_device {
|
|||
id: id(wl_data_device) (new),
|
||||
seat: id(wl_seat),
|
||||
}
|
||||
|
||||
request release (destructor, since = 4) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue