diff --git a/scripting/scripting.cpp b/scripting/scripting.cpp
index bc41770fa4..b5b1a2e117 100644
--- a/scripting/scripting.cpp
+++ b/scripting/scripting.cpp
@@ -23,6 +23,7 @@ along with this program. If not, see .
// own
#include "meta.h"
#include "workspace_wrapper.h"
+#include "../client.h"
#include "../thumbnailitem.h"
#include "../options.h"
#include "../workspace.h"
@@ -217,6 +218,7 @@ void KWin::DeclarativeScript::run()
installScriptFunctions(kdeclarative.scriptEngine());
qmlRegisterType("org.kde.kwin", 0, 1, "ThumbnailItem");
qmlRegisterType("org.kde.kwin", 0, 1, "KWin");
+ qmlRegisterType();
m_view->rootContext()->setContextProperty("workspace", workspace());
m_view->rootContext()->setContextProperty("options", options);