[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    =?gb18030?B?u9i4tKO6IHRyYW5zcGFyZW50IGJhY2tncm91bmQg?= =?gb18030?B?b2YgIFhMaWIgd2luZG93?=
From:       "=?gb18030?B?TElERQ==?=" <1053481745 () qq ! com>
Date:       2014-04-14 2:18:03
Message-ID: tencent_4647B01140E1C538207CF4B8 () qq ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hi:
    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 content under the \
window.Xshape is not suit for me.because the events of that region I still want to \
use.






------------------ ԭʼÓʼþ ------------------
·¢¼þÈË: "Thomas L¨¹bkin";<thomas.luebking@gmail.com>;
·¢ËÍʱ¼ä: 2014Äê4Ô 13ÈÕ(ÐÇÆÚÌì) ÍíÉÏ7:42
ÊÕ¼þÈË: "LIDE"<1053481745@qq.com>; 
³­ËÍ: "xorg"<xorg@freedesktop.org>; 
Ö÷Ìâ: Re: transparent background of  XLib window



On Freitag, 11. April 2014 12:16:48 CEST, LIDE wrote:
> Dear:
> I want to create a window that has a transparent  
> window.But I really don't know how to achieve.I just set the 
> window depth  32,what should I do next?
> Sorry to my poor English.Waiting for your  replay.THANKS!


In case you want a *transparent* (invisible) window, pass InputOnly as "class" \
parameter to XCreateWindow http://tronche.com/gui/x/xlib/window/XCreateWindow.html

If you want a *translucent* (partially transparent/translucent content) window you \
require a running compositor (to see the translucency) 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


Cheers,
Thomas


[Attachment #5 (text/html)]

<div>Hi:</div><div>&nbsp; &nbsp; I don't know &nbsp;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&nbsp;<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;">------------------&nbsp;ԭʼÓʼþ&nbsp;------------------</div><div \
style="font-size: 12px;background:#efefef;padding:8px;"><div><b>·¢¼þÈË:</b>&nbsp;"Thomas \
L¨¹bkin";&lt;thomas.luebking@gmail.com&gt;;</div><div><b>·¢ËÍʱ¼ä:</b>&nbsp;2014Äê4Ô \
13ÈÕ(ÐÇÆÚÌì) ÍíÉÏ7:42</div><div><b>ÊÕ¼þÈË:</b>&nbsp;"LIDE"&lt;1053481745@qq.com&gt;; \
<wbr></div><div><b>³­ËÍ:</b>&nbsp;"xorg"&lt;xorg@freedesktop.org&gt;; \
<wbr></div><div><b>Ö÷Ìâ:</b>&nbsp;Re: transparent background of  XLib \
window</div></div><div><br></div>On Freitag, 11. April 2014 12:16:48 CEST, LIDE \
wrote:<br>&gt; Dear:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I want to create a window \
that has a transparent&nbsp; <br>&gt; window.But I really don't know how to achieve.I \
just set the <br>&gt; window depth&nbsp; 32,what should I do \
next?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sorry to my poor English.Waiting for \
your&nbsp; 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>




_______________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic