3 Feb 2005 18:51
[PATCH] ARGB visuals (for Composite)
Amit Gurdasani <gurdasani <at> gmx.net>
2005-02-03 17:51:21 GMT
2005-02-03 17:51:21 GMT
Hi, I have a small patch I'd like to submit that allows Sawfish to display windows utilizing the alpha channel provided by the RENDER extension in conjunction with Composite. Currently, Sawfish (along with most window managers) picks a preferred visual reported by gdk-pixbuf and uses that for all X window frames, then reparents the windows into those frames. For ARGB windows, the net effect is that the alpha channel ends up being ignored and the window is rendered opaque. The small patch causes frames for windows with an alpha channel (depth 32) to inherit the visual and colormap so that the compositor will correctly identify the alpha channel and render it correctly. (This essentially does what Keith Packard's patch for MetaCity does: http://bugs.gnome.org/show_bug.cgi?id=126875) The patch doesn't work perfectly -- in particular, shaped window frames will cause the remainder of the rectangular frame window to simply remain unpainted -- but it should work for rectangular frames with the edges covered completely by frameparts. Unfortunately I'm not familiar with RENDER or Composite enough to know how to fix that. The following are links to screenshots of what an alpha-channel-enabled application looks like with the patch (in this case, Keith Packard's hacked-up xterm at http://www.freedesktop.org/xterm-trans.tar.gz). http://thorin.battleaxe.net/~prototyped/sawfish-trans.png (212KB) http://thorin.battleaxe.net/~prototyped/sawfish-argb.png (639KB)(Continue reading)
RSS Feed