From f607205760ab3bd74f0a6b003d194e178d92af03 Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Wed, 27 Mar 2024 09:56:35 +0200 Subject: [PATCH] fix lint --- src/ruisapp/glue/linux/glue_wayland.cxx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/ruisapp/glue/linux/glue_wayland.cxx b/src/ruisapp/glue/linux/glue_wayland.cxx index cc16522..318f28e 100644 --- a/src/ruisapp/glue/linux/glue_wayland.cxx +++ b/src/ruisapp/glue/linux/glue_wayland.cxx @@ -160,6 +160,12 @@ struct window_wrapper : public utki::destructable { registry_scope_exit.release(); } + registry_wrapper(const registry_wrapper&) = delete; + registry_wrapper& operator=(const registry_wrapper&) = delete; + + registry_wrapper(registry_wrapper&&) = delete; + registry_wrapper& operator=(registry_wrapper&&) = delete; + ~registry_wrapper() { this->destroy(); @@ -189,6 +195,12 @@ struct window_wrapper : public utki::destructable { } } + surface_wrapper(const surface_wrapper&) = delete; + surface_wrapper& operator=(const surface_wrapper&) = delete; + + surface_wrapper(surface_wrapper&&) = delete; + surface_wrapper& operator=(surface_wrapper&&) = delete; + ~surface_wrapper() { wl_surface_destroy(this->sur); @@ -226,6 +238,12 @@ struct window_wrapper : public utki::destructable { xdg_surface_add_listener(this->xdg_sur, &listener, nullptr); } + xdg_surface_wrapper(const xdg_surface_wrapper&) = delete; + xdg_surface_wrapper& operator=(const xdg_surface_wrapper&) = delete; + + xdg_surface_wrapper(xdg_surface_wrapper&&) = delete; + xdg_surface_wrapper& operator=(xdg_surface_wrapper&&) = delete; + ~xdg_surface_wrapper() { xdg_surface_destroy(this->xdg_sur); @@ -283,6 +301,12 @@ struct window_wrapper : public utki::destructable { surface.commit(); } + toplevel_wrapper(const toplevel_wrapper&) = delete; + toplevel_wrapper& operator=(const toplevel_wrapper&) = delete; + + toplevel_wrapper(toplevel_wrapper&&) = delete; + toplevel_wrapper& operator=(toplevel_wrapper&&) = delete; + ~toplevel_wrapper() { xdg_toplevel_destroy(this->toplev);