diff --git a/main.cpp b/main.cpp
index afa8ad754b..5fe54676b8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -20,29 +20,39 @@ along with this program. If not, see .
*********************************************************************/
#include "main.h"
+#include "config-workspace.h"
+// kwin
+#include "atoms.h"
+#include "options.h"
+#include "sm.h"
+#include "workspace.h"
+#include "xcbutils.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+// KDE workspace
+#include
-#include
-#include
+// KDE
#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+// Qt
#include
#include
#include
#include
#include
+#include
#include
-#include
-
-#include "config-workspace.h"
+#include
+#include
+// system
#ifdef HAVE_UNISTD_H
#include
#endif // HAVE_UNISTD_H
@@ -51,14 +61,7 @@ along with this program. If not, see .
#include
#endif // HAVE_MALLOC_H
-#include
-
-#include "atoms.h"
-#include "options.h"
-#include "sm.h"
-#include "workspace.h"
-#include "xcbutils.h"
-
+// XLib
#define INT8 _X11INT8
#define INT32 _X11INT32
#include