Create a 32-bit root window

SRC SRC src_s at rocketmail.com
Sat Jan 7 22:29:41 UTC 2017


Hi,

This is my first email to this mailing list and I was wondering if anyone could tell me how to draw a root window on the display using xlib with a 32-bit color depth so that I can use RGBA colors on the child windows. As far as I know, I could be wrong though, the child window cannot use the alpha channel if it is not a 32-bit color depth window, and for it to be a 32-bit depth window it's parent has to also be a 32-bit depth window. Basically what I'm trying  to do is I'm trying to set a root window with a color depth of 32-bit that has a scaled 24-bit image loaded as the background, and I want another window that will be the child of this parent, or root, window, which will have a translucent effect similar to the window borders in Microsoft windows 7. if you need more details I have posted a similar question on stack overflow with more details on the code that I'm using to create the root window. Hopefully I was clear on my question.

Thanks!
Sajeeb Roy

Stack overflow link: http://stackoverflow.com/questions/41524843/create-a-32-bit-root-window-in-xlib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170107/94721886/attachment.html>


More information about the xorg-devel mailing list