The question is how to set xlib window background transparent?
------------------ ???????? ------------------
??????: "Thomas L??bkin";<thomas.luebk...@gmail.com>;
????????: 2014??4??14??(??????) ????8:13
??????: "LIDE"<1053481...@qq.com>;
????: "xorg"<x...@freedesktop.org>;
????: Re: ?????? transparent background of XLib window
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
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s