From f6a0c6907a304a6d51be54501a0d2e2358f7c578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 26 May 2012 10:24:11 +0200 Subject: [PATCH] Fix compilation of screenshot effect without XRender --- effects/screenshot/screenshot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/screenshot/screenshot.cpp b/effects/screenshot/screenshot.cpp index d49c2c3547..943bddf2a8 100644 --- a/effects/screenshot/screenshot.cpp +++ b/effects/screenshot/screenshot.cpp @@ -227,6 +227,7 @@ QString ScreenShotEffect::blitScreenshot(const QRect &geometry) } if (effects->compositingType() == XRenderCompositing) { +#ifdef KWIN_HAVE_XRENDER_COMPOSITING QPixmap buffer(geometry.size()); if (buffer.handle() == 0) { Pixmap xpix = XCreatePixmap(display(), rootWindow(), geometry.width(), geometry.height(), 32); @@ -235,6 +236,7 @@ QString ScreenShotEffect::blitScreenshot(const QRect &geometry) XRenderComposite(display(), PictOpSrc, effects->xrenderBufferPicture(), None, buffer.x11PictureHandle(), 0, 0, 0, 0, geometry.x(), geometry.y(), geometry.width(), geometry.height()); img = buffer.toImage(); +#endif } KTemporaryFile temp;