diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24785cd6fa..feb2c90717 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -189,7 +189,7 @@ qt4_add_dbus_interface( kwin_KDEINIT_SRCS
qt4_add_resources( kwin_KDEINIT_SRCS resources.qrc )
-set(kwinLibs ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} kephal kworkspace kdecorations kwineffects ${X11_LIBRARIES} ${X11_Xrandr_LIB} ${X11_Xcomposite_LIB} ${X11_Xdamage_LIB} ${X11_Xrender_LIB} ${X11_Xfixes_LIB})
+set(kwinLibs ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} ${KACTIVITIES_LIBRARY} kephal kworkspace kdecorations kwineffects ${X11_LIBRARIES} ${X11_Xrandr_LIB} ${X11_Xcomposite_LIB} ${X11_Xdamage_LIB} ${X11_Xrender_LIB} ${X11_Xfixes_LIB})
if(KWIN_BUILD_SCRIPTING)
set(kwinLibs ${kwinLibs} ${QT_QTSCRIPT_LIBRARY})
diff --git a/toplevel.h b/toplevel.h
index c7866547be..693e6f3718 100644
--- a/toplevel.h
+++ b/toplevel.h
@@ -28,8 +28,6 @@ along with this program. If not, see .
#include
#include
-#include "kactivityconsumer.h"
-
#include "utils.h"
#include "workspace.h"
diff --git a/useractions.cpp b/useractions.cpp
index 59ba42ea13..60c3908c98 100644
--- a/useractions.cpp
+++ b/useractions.cpp
@@ -36,7 +36,7 @@ along with this program. If not, see .
#include "tiling/tiling.h"
#endif
-#include "kactivityinfo.h"
+#include
#include
#include
@@ -506,7 +506,7 @@ void Workspace::activityPopupAboutToShow()
activity_popup->addSeparator();
foreach (const QString & id, openActivityList()) {
- KActivityInfo activity(id);
+ KActivities::Info activity(id);
QString name = activity.name();
name.replace('&', "&&");
action = activity_popup->addAction(KIcon(activity.icon()), name);
diff --git a/workspace.h b/workspace.h
index e4db7e7617..616c39f85e 100644
--- a/workspace.h
+++ b/workspace.h
@@ -32,7 +32,7 @@ along with this program. If not, see .
#include
#include
-#include "kactivitycontroller.h"
+#include
#include "plugins.h"
#include "utils.h"
@@ -307,7 +307,7 @@ private:
QString activity_;
QStringList allActivities_;
- KActivityController activityController_;
+ KActivities::Controller activityController_;
#ifdef KWIN_BUILD_TILING
Tiling* m_tiling;
@@ -334,7 +334,7 @@ public:
return allActivities_;
}
QStringList openActivityList() const {
- return activityController_.listActivities(KActivityInfo::Running);
+ return activityController_.listActivities(KActivities::Info::Running);
}
// True when performing Workspace::updateClientArea().