diff --git a/effects/CMakeLists.txt b/effects/CMakeLists.txt
index 52a481727c..e27a99c0f4 100644
--- a/effects/CMakeLists.txt
+++ b/effects/CMakeLists.txt
@@ -13,7 +13,6 @@ set(kwin_effect_KDE_LIBS
set(kwin_effect_XLIB_LIBS
${X11_LIBRARIES}
${X11_Xcursor_LIB}
- ${X11_Xfixes_LIB}
)
set(kwin_effect_XCB_LIBS
@@ -24,7 +23,6 @@ set(kwin_effect_XCB_LIBS
)
if( KWIN_HAVE_XRENDER_COMPOSITING )
- set(kwin_effect_XLIB_LIBS ${kwin_effect_XLIB_LIBS} ${X11_Xrender_LIB})
set(kwin_effect_XCB_LIBS ${kwin_effect_XCB_LIBS} ${XCB_RENDER_LIBRARIES})
endif()
diff --git a/libkwineffects/kwinxrenderutils.h b/libkwineffects/kwinxrenderutils.h
index 2d2ff7323c..84df9d2d0e 100644
--- a/libkwineffects/kwinxrenderutils.h
+++ b/libkwineffects/kwinxrenderutils.h
@@ -29,8 +29,6 @@ along with this program. If not, see .
#include
-// TODO: remove, currently only included to not break builds of effects
-#include
#include
class QColor;