[xmonad] Transparent Border with Chrome Beta/Unstable

Brandon Allbery allbery.b at gmail.com
Mon Dec 8 01:05:40 UTC 2014


On Sat, Dec 6, 2014 at 11:06 PM, Zev Weiss <zev at bewilderbeest.net> wrote:

> I can't say with certainty if Chrome's unsightly-transparent-border
> problem is due to this, but at least for evince (which I've actually since
> stopped using in favor of zathura, for what it's worth) I was able to work
> around the problem by putting the following in ~/.config/gtk-3.0/gtk.css:
>

That wouldn't prevent xmonad's border from becoming translucent in an RGBA
visual, just avoid interactions with gtk3's own transparent decorations.
xmonad doesn't even try to handle RGBA visuals currently, or indeed
anything other than the server default visual (which is RGB), and I am not
surprised that it sometimes behaves badly. (How badly probably depends on
whether the window background is has an alpha other than 1.)

FIxing this: there are some potential questions that we would need to think
about. For example: while xorg no longer supports PseudoColor visuals
[thankfully; that'd be a real nightmare], it does offer some DirectColor
visuals. Do we want to deal with DirectColor, which will require an
entirely different set of operations to configure borders, since the pixels
in DirectColor are predefined and we must use lookups of closest existing
predefined colors instead of color allocation as with TrueColor? We'll need
to store border color information with windows, computing the pixels to use
based on the window visual and depth and presence of alpha channel, and the
current colormap entries we keep in the XConfig will serve no purpose since
they are only correct and safe to use with the default visual.

A side question might be whether to allow specification of the alpha for
the border. We'd presumably allow it to be specified and then mask it out
for visuals lacking an alpha channel.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20141207/83bd7eca/attachment.html>


More information about the xmonad mailing list