diff options
Diffstat (limited to 'tests/auto/client/shared/mockwlshell.h')
-rw-r--r-- | tests/auto/client/shared/mockwlshell.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/client/shared/mockwlshell.h b/tests/auto/client/shared/mockwlshell.h index c6000c7b2..3da586ca8 100644 --- a/tests/auto/client/shared/mockwlshell.h +++ b/tests/auto/client/shared/mockwlshell.h @@ -33,6 +33,19 @@ namespace Impl { +class Surface; + +class WlShellSurface : public QtWaylandServer::wl_shell_surface +{ +public: + explicit WlShellSurface(::wl_client *client, int id, Surface *surface); + ~WlShellSurface() override; + void shell_surface_destroy_resource(Resource *) override { delete this; } + +private: + Surface *m_surface = nullptr; +}; + class WlShell : public QtWaylandServer::wl_shell { public: |