diff --git a/utils.cpp b/utils.cpp
index 52647f2d98..7661f6ca57 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -28,12 +28,12 @@ along with this program. If not, see .
#include "utils.h"
#include
+#include
#ifndef KCMRULES
#include
#include
#include
-#include
#include
@@ -215,6 +215,7 @@ QPoint cursorPos()
{
return Cursor::self()->pos();
}
+#endif
// converting between X11 mouse/keyboard state mask and Qt button/keyboard states
@@ -294,7 +295,6 @@ Qt::KeyboardModifiers x11ToQtKeyboardModifiers(int state)
return ret;
}
-#endif
} // namespace
#ifndef KCMRULES