wayland: allow zwlr_layer_shell_v1.destroy in all versions
This commit is contained in:
parent
ad85d89641
commit
3bd1813d50
1 changed files with 8 additions and 6 deletions
|
|
@ -128,12 +128,14 @@ simple_add_obj!(ZwlrLayerShellV1);
|
|||
|
||||
impl Object for ZwlrLayerShellV1 {
|
||||
fn num_requests(&self) -> u32 {
|
||||
let last_request = if self.version >= 3 {
|
||||
DESTROY
|
||||
} else {
|
||||
GET_LAYER_SURFACE
|
||||
};
|
||||
last_request + 1
|
||||
// todo
|
||||
// let last_request = if self.version >= 3 {
|
||||
// DESTROY
|
||||
// } else {
|
||||
// GET_LAYER_SURFACE
|
||||
// };
|
||||
// last_request + 1
|
||||
DESTROY + 1
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue