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 {
|
impl Object for ZwlrLayerShellV1 {
|
||||||
fn num_requests(&self) -> u32 {
|
fn num_requests(&self) -> u32 {
|
||||||
let last_request = if self.version >= 3 {
|
// todo
|
||||||
DESTROY
|
// let last_request = if self.version >= 3 {
|
||||||
} else {
|
// DESTROY
|
||||||
GET_LAYER_SURFACE
|
// } else {
|
||||||
};
|
// GET_LAYER_SURFACE
|
||||||
last_request + 1
|
// };
|
||||||
|
// last_request + 1
|
||||||
|
DESTROY + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue