<div>Hi:</div><div>    I don't know  if you understand my requirement.I want a subregion of the window transparent.That is to say, I use XClearArea to make an area show the background of the window.I want to set the background of the window transparent.So, I can get a subregion that is transparent.I want to use this region to show the <span style="line-height: 1.5;">content under the window.Xshape is not suit for me.because the events of that region I still want to use.</span></div><div><br></div><div><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>; <wbr></div><div><b>抄送:</b> "xorg"<xorg@freedesktop.org>; <wbr></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>http://tronche.com/gui/x/xlib/window/XCreateWindow.html<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>http://stackoverflow.com/questions/3645632/how-to-create-a-window-with-a-bit-depth-of-32<br><br>Cheers,<br>Thomas<br><br></div>