]> Dogcows Code - chaz/tint2/commitdiff
improve systray drawing when screen depth = 24
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 31 Jan 2010 10:17:20 +0000 (10:17 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 31 Jan 2010 10:17:20 +0000 (10:17 +0000)
src/systray/systraybar.c

index edf0706e1a18fca03d6b903b83ee6f72d0898c8e..3cdc2523118e9f05083386b3451aa4873bcaec53 100644 (file)
@@ -521,7 +521,7 @@ void systray_render_icon_now(void* t)
        imlib_context_set_image(image);
        imlib_image_set_has_alpha(1);
        DATA32* data = imlib_image_get_data();
-       if (traywin->depth == 24) {
+       if (traywin->depth == 24 && server.depth != 24) {
                createHeuristicMask(data, traywin->width, traywin->height);
        }
        if (systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0)
This page took 0.022124 seconds and 4 git commands to generate.