From 3bd1813d50f93ea61a6cc5ec1161a03b3cdbc832 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Fri, 13 May 2022 18:29:25 +0200 Subject: [PATCH] wayland: allow zwlr_layer_shell_v1.destroy in all versions --- src/ifs/zwlr_layer_shell_v1.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ifs/zwlr_layer_shell_v1.rs b/src/ifs/zwlr_layer_shell_v1.rs index 52b5b81f..9e340cee 100644 --- a/src/ifs/zwlr_layer_shell_v1.rs +++ b/src/ifs/zwlr_layer_shell_v1.rs @@ -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 } }