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

List:       freedesktop-xorg
Subject:    Re: transparent background of  XLib window
From:       Thomas_Lübking <thomas.luebking () gmail ! com>
Date:       2014-04-13 11:42:55
Message-ID: 8a947257-a6be-4877-b7b1-99f56c0b45f8 () gmail ! com
[Download RAW message or body]

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

_______________________________________________
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