Alpha transparent window in linux?

Linux specific forum
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Alpha transparent window in linux?

Post by Trond »

Does anyone know how to create, with GTk 2, what is in Windows is known as a "layered" window? This means that each pixel can have it's own transparency (sort of like in my transparent clock) (this is not related to it).

Note, there is no need to hurry with this, but if you happen to know it, I'd be happy to get a hint.
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

The currently common implemantation of the X-Window system doesn't allow transparent windows. This feature will be added in Xgl though, where it is based on a hardwarerendering X-Server working together with a compositing window manager. What you can do though is getting a picture of the the desktop background and then do some kind of semi transperency where neither windows nor icons nor anything else except the wallpaper will be visible through your transparent window.
This issue is completly independent form wether you use gtk, qt or plain x-libraries
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

That's just weird.
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Why should it be weird, the system Unix uses to draw windows and stuff like that is far more complex than the system windows uses, it much older too and does concentrate on other tasks, you can for example stream windows over the network without using any special tools and without streaming every application. The X-Windowing System is much more oriented towards servers , if you want to read more look it up in Wikipedia.
Post Reply