diff --git a/scripting/workspace_wrapper.cpp b/scripting/workspace_wrapper.cpp
index fb73711906..b452249fbd 100644
--- a/scripting/workspace_wrapper.cpp
+++ b/scripting/workspace_wrapper.cpp
@@ -30,6 +30,7 @@ along with this program. If not, see .
#endif
#include
+#include
namespace KWin {
diff --git a/sm.cpp b/sm.cpp
index 1b399429d5..632b365283 100644
--- a/sm.cpp
+++ b/sm.cpp
@@ -33,6 +33,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
namespace KWin
{
diff --git a/sm.h b/sm.h
index a0f6e3c7bd..2aee595dca 100644
--- a/sm.h
+++ b/sm.h
@@ -23,7 +23,6 @@ along with this program. If not, see .
#define KWIN_SM_H
#include
-#include
#include
#include
#include
diff --git a/tabbox/declarative.cpp b/tabbox/declarative.cpp
index 4d87c8f8cd..a7482bfae7 100644
--- a/tabbox/declarative.cpp
+++ b/tabbox/declarative.cpp
@@ -22,6 +22,7 @@ along with this program. If not, see .
#include "tabboxhandler.h"
#include "clientmodel.h"
// Qt
+#include
#include
#include
#include
diff --git a/workspace.cpp b/workspace.cpp
index b7b68d8c16..c0126411ca 100644
--- a/workspace.cpp
+++ b/workspace.cpp
@@ -61,6 +61,7 @@ along with this program. If not, see .
#include "xcbutils.h"
// KDE
#include
+#include
#include
#include
#include
diff --git a/workspace.h b/workspace.h
index fb87e00db7..6b67070506 100644
--- a/workspace.h
+++ b/workspace.h
@@ -39,6 +39,7 @@ along with this program. If not, see .
class QStringList;
class KConfig;
+class KConfigGroup;
class KActionCollection;
class KShortcut;
class KStartupInfo;