1
0
Fork 0
forked from wry/wry

wayland: allow zwlr_layer_shell_v1.destroy in all versions

This commit is contained in:
Julian Orth 2022-05-13 18:29:25 +02:00
parent ad85d89641
commit 3bd1813d50

View file

@ -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
} }
} }