Hello,

When using a compositor within cwm, some programs (like chrome and firefox)
get a percentage of transparency applied to their border, while others
(like xterm) don't.
This diff fixes that by explicitly setting the alpha channel value for each
color to 0xffff.

(If someone wants transparency on their window borders, this boldly assumes
they want it uniform across all applications...  which could be achieved with
a fancier compositor than xcompmgr).

Worthwhile?


diff --git app/cwm/conf.c app/cwm/conf.c
index 6459aa18f..ab6c161bd 100644
--- app/cwm/conf.c
+++ app/cwm/conf.c
@@ -505,6 +505,9 @@ conf_screen(struct screen_ctx *sc)
                }
        }
 
+       for (i = 0; i < CWM_COLOR_NITEMS; i++)
+               sc->xftcolor[i].color.alpha = 0xffff;
+
        conf_grab_kbd(sc->rootwin);
 }
 

--
mw

Reply via email to