diff --git a/client.h b/client.h index f4a3ac08f0..ba387b2762 100644 --- a/client.h +++ b/client.h @@ -34,8 +34,6 @@ along with this program. If not, see . // Qt #include // X -#include -#include #include // TODO: Cleanup the order of things in this .h file diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index 985493077d..40ba103505 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -23,8 +23,6 @@ // KConfigSkeleton #include "blurconfig.h" -#include - #include #include #include @@ -102,7 +100,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const { QRegion region; - const QByteArray value = w->readProperty(net_wm_blur_region, XA_CARDINAL, 32); + const QByteArray value = w->readProperty(net_wm_blur_region, XCB_ATOM_CARDINAL, 32); if (value.size() > 0 && !(value.size() % (4 * sizeof(unsigned long)))) { const unsigned long *cardinals = reinterpret_cast(value.constData()); for (unsigned int i = 0; i < value.size() / sizeof(unsigned long);) { diff --git a/events.cpp b/events.cpp index bcb1931d5f..15fe94a642 100644 --- a/events.cpp +++ b/events.cpp @@ -25,8 +25,6 @@ along with this program. If not, see . */ -#include - #include "client.h" #include "cursor.h" #include "decorations.h" @@ -53,10 +51,6 @@ along with this program. If not, see . #include -#include -#include -#include -#include #include #include diff --git a/libkwineffects/kwineffects.cpp b/libkwineffects/kwineffects.cpp index 937a8eb8f9..6cb46efb57 100644 --- a/libkwineffects/kwineffects.cpp +++ b/libkwineffects/kwineffects.cpp @@ -42,8 +42,6 @@ along with this program. If not, see . #include #ifdef KWIN_HAVE_XRENDER_COMPOSITING -#include -#include #include #endif diff --git a/scene_opengl.cpp b/scene_opengl.cpp index c3d36bb40a..340a1e5fb1 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -56,8 +56,6 @@ along with this program. If not, see . // normally only few of them are enabled //#define CHECK_GL_ERROR -#include - #include #include #include diff --git a/useractions.cpp b/useractions.cpp index 30ac429533..28b6b3d3a1 100755 --- a/useractions.cpp +++ b/useractions.cpp @@ -53,7 +53,6 @@ along with this program. If not, see . #include #include -#include #ifndef KWIN_NO_XF86VM #include #endif diff --git a/utils.cpp b/utils.cpp index 0f2a475e91..3beb9d8243 100644 --- a/utils.cpp +++ b/utils.cpp @@ -27,7 +27,6 @@ along with this program. If not, see . #include "utils.h" -#include #include #ifndef KCMRULES diff --git a/utils.h b/utils.h index 8512565024..750d2256d3 100644 --- a/utils.h +++ b/utils.h @@ -35,9 +35,6 @@ along with this program. If not, see . #include #include #include -// X -#include -#include // system #include diff --git a/workspace.h b/workspace.h index b4d4a098c1..c4206ca269 100644 --- a/workspace.h +++ b/workspace.h @@ -30,8 +30,6 @@ along with this program. If not, see . // Qt #include #include -// X -#include // std #include