diff --git a/src/wayland/server/screencast_interface.cpp b/src/wayland/server/screencast_interface.cpp index 0926601560..f30ac5a6f7 100644 --- a/src/wayland/server/screencast_interface.cpp +++ b/src/wayland/server/screencast_interface.cpp @@ -6,6 +6,8 @@ #include "screencast_interface.h" #include "display.h" +#include "output_interface.h" + #include #include "qwayland-server-zkde-screencast-unstable-v1.h" @@ -86,7 +88,7 @@ public: void zkde_screencast_unstable_v1_stream_output(Resource *resource, uint32_t streamid, struct ::wl_resource *output, uint32_t pointer) override { - Q_EMIT q->outputScreencastRequested(createStream(resource, streamid), output, ScreencastInterface::CursorMode(pointer)); + Q_EMIT q->outputScreencastRequested(createStream(resource, streamid), OutputInterface::get(output), ScreencastInterface::CursorMode(pointer)); } void zkde_screencast_unstable_v1_stream_window(Resource *resource, uint32_t streamid, const QString &uuid, uint32_t pointer) override diff --git a/src/wayland/server/screencast_interface.h b/src/wayland/server/screencast_interface.h index ec59cec7a9..7958529169 100644 --- a/src/wayland/server/screencast_interface.h +++ b/src/wayland/server/screencast_interface.h @@ -9,7 +9,6 @@ #include #include #include -#include struct wl_resource; @@ -56,7 +55,7 @@ public: Q_SIGNALS: - void outputScreencastRequested(ScreencastStreamInterface* stream, ::wl_resource *output, CursorMode mode); + void outputScreencastRequested(ScreencastStreamInterface* stream, OutputInterface *output, CursorMode mode); void windowScreencastRequested(ScreencastStreamInterface* stream, const QString &winid, CursorMode mode); private: