diff --git a/main.cpp b/main.cpp index 9046e46d48..25f5fae984 100644 --- a/main.cpp +++ b/main.cpp @@ -247,13 +247,6 @@ void Application::crashChecking() QTimer::singleShot(15 * 1000, this, SLOT(resetCrashesCount())); } -bool Application::notify(QObject* o, QEvent* e) -{ - if (Workspace::self()->workspaceEvent(e)) - return true; - return QApplication::notify(o, e); -} - void Application::crashHandler(int signal) { crashes++; diff --git a/main.h b/main.h index 1822afce60..1ea9c1c1d8 100644 --- a/main.h +++ b/main.h @@ -205,7 +205,6 @@ protected: } void destroyAtoms(); - bool notify(QObject* o, QEvent* e); static void crashHandler(int signal); protected: diff --git a/main_x11.cpp b/main_x11.cpp index a0644bca3a..43d7477945 100644 --- a/main_x11.cpp +++ b/main_x11.cpp @@ -23,6 +23,7 @@ along with this program. If not, see . #include // kwin #include "sm.h" +#include "workspace.h" #include "xcbutils.h" // KDE @@ -191,6 +192,13 @@ void ApplicationX11::performStartup() createAtoms(); } +bool ApplicationX11::notify(QObject* o, QEvent* e) +{ + if (Workspace::self()->workspaceEvent(e)) + return true; + return QApplication::notify(o, e); +} + } // namespace extern "C" diff --git a/main_x11.h b/main_x11.h index ef3c44464f..ca25bf486a 100644 --- a/main_x11.h +++ b/main_x11.h @@ -50,6 +50,7 @@ public: protected: void performStartup() override; + bool notify(QObject *o, QEvent *e) override; private Q_SLOTS: void lostSelection();