diff --git a/client.h b/client.h
index 05cf1f00e7..9f9adc07ed 100644
--- a/client.h
+++ b/client.h
@@ -35,6 +35,8 @@ along with this program. If not, see .
#include
// X
#include
+#include
+#include
// TODO: Cleanup the order of things in this .h file
diff --git a/effects/glide/glide.cpp b/effects/glide/glide.cpp
index 40d06577e3..18c1e376e3 100644
--- a/effects/glide/glide.cpp
+++ b/effects/glide/glide.cpp
@@ -26,6 +26,9 @@ along with this program. If not, see .
#include
+#include
+#include
+
// Effect is based on fade effect by Philip Falkner
namespace KWin
diff --git a/toplevel.h b/toplevel.h
index 662800c636..6e5650d127 100644
--- a/toplevel.h
+++ b/toplevel.h
@@ -34,6 +34,9 @@ along with this program. If not, see .
// xcb
#include
#include
+// XLib
+#include
+#include
// system
#include