diff --git a/lib/kwineffects.cpp b/lib/kwineffects.cpp
index 678ef76a57..3c4e2455c3 100644
--- a/lib/kwineffects.cpp
+++ b/lib/kwineffects.cpp
@@ -37,9 +37,8 @@ along with this program. If not, see .
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
#include
-#endif
-
#include
+#endif
namespace KWin
{
@@ -866,6 +865,7 @@ QRect PaintClipper::Iterator::boundingRect() const
}
+#ifdef KWIN_HAVE_XRENDER_COMPOSITING
// Convert QRegion to XserverRegion. All code uses XserverRegion
// only when really necessary as the shared implementation uses
// QRegion.
@@ -886,6 +886,6 @@ XserverRegion toXserverRegion( QRegion region )
delete[] xr;
return ret;
}
-
+#endif
} // namespace