From 0b1cef2414da2f1d11a28f762540b0ec6afff99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 3 Mar 2008 21:12:48 +0000 Subject: [PATCH] Do #define's properly for XRender. svn path=/trunk/KDE/kdebase/workspace/; revision=781906 --- lib/kwineffects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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