[Xfce4-commits] [xfce/xfwm4] 01/02: Use opaque background color for preview

noreply at xfce.org noreply at xfce.org
Tue Feb 17 08:15:16 CET 2015


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit 3f1b7c02ddcbb686f6f227b09f6e3017445880bf
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Feb 17 08:10:51 2015 +0100

    Use opaque background color for preview
    
    As unfortunately, gdk_pixbuf_get_from_drawable() does not
    seem to handle transparency in ARGB32 pixmap.
    
    Will have to review this again once we switch to gtk3 and
    cairo.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index eeda61f..15396c9 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3103,7 +3103,7 @@ compositorScaleWindowPixmap (CWindow *cw, guint *width, guint *height)
     tmpPicture = XRenderCreatePicture (dpy, tmpPixmap, render_format, 0, NULL);
     XRenderFillRectangle (dpy, PictOpSrc, tmpPicture, &c, 0, 0, src_w, src_h);
     XFixesSetPictureClipRegion (dpy, tmpPicture, 0, 0, None);
-    XRenderComposite (dpy, PictOpSrc, srcPicture, None, tmpPicture,
+    XRenderComposite (dpy, PictOpOver, srcPicture, None, tmpPicture,
                       0, 0, 0, 0, 0, 0, src_w, src_h);
 
     XRenderSetPictureFilter (dpy, tmpPicture, FilterBest, NULL, 0);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list