Discussion:
Non-rectangular (shaped) main window that has non-rectangular child windows.
(too old to reply)
moma
2007-09-21 13:15:57 UTC
Permalink
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, 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 a the code in return :-)

TIA.

// moma
http://www.futuredesktop.org

PS. cannot live in a rectangular world anymore.


Note: Answers go to "comp.os.linux.development" by default. I set it as
Followup-To group.
moma
2007-09-21 16:11:20 UTC
Permalink
I have re-sent this question to news://comp.os.linux.development.apps
because news://comp.os.linux.development is practically dead.

// moma
Post by moma
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.
http://ubuntuforums.org/showthread.php?p=3384231#post3384231
http://ubuntuforums.org/showthread.php?p=3384886#post3384886
----- -----
Now, 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.
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 a the code in return :-)
TIA.
// moma
http://www.futuredesktop.org
PS. cannot live in a rectangular world anymore.
Note: Answers go to "comp.os.linux.development" by default. I set it as
Followup-To group.
Loading...