From 1c1dca6da49b119bb6d7386a8a4711051b0ef70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 26 Aug 2016 15:27:07 +0200 Subject: [PATCH] Move registerMetaType for SurfaceInterface* to main.cpp Toplevel has the SurfaceInterface* exposed as a property which results in a (incorrect) runtime warning on X11 about not registered meta type. --- main.cpp | 2 ++ wayland_server.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index db58ac71f5..e5fc0c2297 100644 --- a/main.cpp +++ b/main.cpp @@ -42,6 +42,7 @@ along with this program. If not, see . #include #include #include +#include // Qt #include #include @@ -105,6 +106,7 @@ Application::Application(Application::OperationMode mode, int &argc, char **argv { qRegisterMetaType("Options::WindowOperation"); qRegisterMetaType(); + qRegisterMetaType("KWayland::Server::SurfaceInterface *"); } void Application::setConfigLock(bool lock) diff --git a/wayland_server.cpp b/wayland_server.cpp index 099adcd269..bd40ddbe19 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -73,7 +73,6 @@ KWIN_SINGLETON_FACTORY(WaylandServer) WaylandServer::WaylandServer(QObject *parent) : QObject(parent) { - qRegisterMetaType("KWayland::Server::SurfaceInterface *"); qRegisterMetaType(); connect(kwinApp(), &Application::screensCreated, this, &WaylandServer::initOutputs);