What do you mean "<span style="font-family: 'lucida Grande', Verdana; line-height: 23px;">a running compositor</span>"? Can you give me some example? If I want to set the background of thewindow transparent,how should I do?<div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Thomas Lübkin"<thomas.luebking@gmail.com>; </div><div><b>发送时间:</b> 2014年4月13日(星期天) 晚上7:42</div><div><b>收件人:</b> "LIDE"<1053481745@qq.com>; </div><div><b >抄送:</b> "xorg@freedesktop.org"<xorg@freedesktop.org>; </div><div><b>主题:</b> Re: transparent background of  XLib window</div></div><div><br></div>On Freitag, 11. April 2014 12:16:48 CEST, LIDE wrote:<br>> Dear:<br>>      I want to create a window that has a transparent  <br>> window.But I really don't know how to achieve.I just set the <br>> window depth  32,what should I do next?<br>>      Sorry to my poor English.Waiting for your  replay.THANKS!<br><br><br>In case you want a *transparent* (invisible) window, pass InputOnly as "class" parameter to XCreateWindow<br><a href="http://tronche.com/gui/x/xlib/window/XCreateWindow.html" target="_blank">http://tronc<wbr>he.com/gui/x<wbr>/xlib/window<wbr>/XCreateWind<wbr>ow.html</a><br><br>If you want a *translucent* (partially transparent/translucent content) window you require a running compositor (to see the translucency)<br>You'll also have to provide correct visual and colormap, see eg. here:<br><a href="http://stackoverflow.com/questions/3645632/how-to-create-a-window-with-a-bit-depth-of-32" target="_blank">http://stack<wbr>overflow.com<wbr>/questions/3<wbr>645632/how-t<wbr>o-create-a-w<wbr>indow-with-a<wbr>-bit-depth-o<wbr>f-32</a><br><br>Cheers,<br>Thomas<br><br>