Non-rectangular (shaped) main window that has non-rectangular child windows.
- From: moma <moma@xxxxxxxxxxx>
- Date: Fri, 21 Sep 2007 18:06:47 +0200
Hello,
I have started to learn how to create shaped, non-rectangular windows with the XShape* functions.
I can now create a shaped main window. I set or create a bitmap mask for it and display the window. This solutions works very well, even when I use Cairographics to draft the window's shape. I mostly use XLib though.
See an example 1 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384231#post3384231
Example 2 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384886#post3384886
----- -----
Now, I want to go further.
I have tried to create a shaped main-window and put some shaped child controls (child windows) on it. But I cannot make it work (the child windows ar enot visible) because I do not understand all the intricatenesses of the XShape* functions.
XShape* functions:
http://linux.die.net/man/3/xshapecombinemask
Please, tell me how to do it (a non-rectangular main-window with many non-rectangular child controls). Can you provide an example?
Do I have to sum up the masks of childwindows and put it on the main-window?
Help and you will get the code in return :-)
TIA.
// moma
http://www.futuredesktop.org
PS. cannot live in a rectangular (desktop) world anymore.
.
- Follow-Ups:
- Re: Non-rectangular (shaped) main window that has non-rectangular child windows.
- From: Måns Rullgård
- Re: Non-rectangular (shaped) main window that has non-rectangular child windows.
- Prev by Date: svgalib and redirecting stdout
- Next by Date: Re: Non-rectangular (shaped) main window that has non-rectangular child windows.
- Previous by thread: svgalib and redirecting stdout
- Next by thread: Re: Non-rectangular (shaped) main window that has non-rectangular child windows.
- Index(es):
Relevant Pages
|