回复: 回复: transparent background of XLib window

LIDE 1053481745 at qq.com
Mon Apr 14 18:08:28 PDT 2014


The question is how to set xlib window background transparent?




------------------ 原始邮件 ------------------
发件人: "Thomas Lübkin";<thomas.luebking at gmail.com>;
发送时间: 2014年4月14日(星期一) 晚上8:13
收件人: "LIDE"<1053481745 at qq.com>; 
抄送: "xorg"<xorg at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20140415/d17c245b/attachment.html>


More information about the xorg mailing list