回复: transparent background of XLib window
Thomas Lübking
thomas.luebking at gmail.com
Mon Apr 14 05:13:14 PDT 2014
On Montag, 14. April 2014 03:16:35 CEST, LIDE wrote:
> What do you mean "a running compositor"? Can you give me some
> example? If I want to set the background of thewindow
> transparent,how should I do?
The Xorg server does not support 32bit output, this is done by compositing clients like many WMs, eg. KWin, Mutter (gnome3), Metacity, Compiz etc. or standalone compositors like compton or xcompmgr.
> I don't know if you understand my requirement.
You want an ARGB window, the provided SO link basically shows how to do that:
> > You'll also have to provide correct visual and colormap, see eg. here:
> > http://stackoverflow.com/questions/3645632/how-to-create-a-window-with-a-bit-depth-of-32
Also toolkits like Qt or gtk+ nicely abstract this (what will make your life much easier, if you use such)
Cheers,
Thomas
More information about the xorg
mailing list