]> Dogcows Code - chaz/tint2/commitdiff
fixed systray_asb in fake transparency (see r407)
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 18 Apr 2010 10:35:25 +0000 (10:35 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 18 Apr 2010 10:35:25 +0000 (10:35 +0000)
src/systray/systraybar.c

index 97195544069650b52a7845d3f12c24061b618dc6..89e5fee029ba76a9ca5d1c96c393ffe93db50863 100644 (file)
@@ -549,7 +549,11 @@ void systray_render_icon_now(void* t)
                printf("Strange tray icon found with depth: %d\n", traywin->depth);
                return;
        }
-       Picture pict_image = XRenderCreatePicture(server.dsp, traywin->id, f, 0, 0);
+       Picture pict_image;
+       if (real_transparency)
+               pict_image = XRenderCreatePicture(server.dsp, traywin->id, f, 0, 0);
+       else
+               pict_image = XRenderCreatePicture(server.dsp, traywin->tray_id, f, 0, 0);
        Picture pict_drawable = XRenderCreatePicture(server.dsp, tmp_pmap, XRenderFindVisualFormat(server.dsp, server.visual32), 0, 0);
        XRenderComposite(server.dsp, PictOpSrc, pict_image, None, pict_drawable, 0, 0, 0, 0, 0, 0, traywin->width, traywin->height);
        XRenderFreePicture(server.dsp, pict_image);
This page took 0.025517 seconds and 4 git commands to generate.