So, my questions are if the following kind of things would be possible
1) Non-rectangular shaped windows
2) No decoration by window managers
3) Transparent windows
Has anyone done similar things?
: So, my questions are if the following kind of things would be possible
: in TK.
: 1) Non-rectangular shaped windows
See shape extension by Donal Fellows
: 2) No decoration by window managers
Overrideredirect does help, but it is quite dangerous. I prefer to use
window-manager specific ways to undecorate windows.
: 3) Transparent windows
Can be achieved using shape extension, but cost much in terms of network
traffic. Better ways would be available when alpha channel support
extensions to X11 protocol would be avaliable.
Requires an extension, but is believed to be supportable on every
platform that Tk works on. Start looking at http://wiki.tcl.tk/6229
> 2) No decoration by window managers
wm overrideredirect .the.toplevel.window 1
immediately after creating the window.
> 3) Transparent windows
What platform are you on, and what exactly do you mean by "transparent"?
(I've seen a few different interpretations!)
It's not *that* trivial, because the overrideredirect makes
the window completely unknown to the wm.
Often one rather needs a window that behaves like xmms's main
window (no wm-title-bars and frames, but the wm still knows
about it; one can Alt-Tab to set the focus on it or from it,
and there is an icon in the taskbar, that correctly reflects
the current state(minimized/normal) etc, etc, etc.). I don't
see how one can get to this behaviour with wm overrideredirect...
Here is an example: http://www.pragana.net/skin.html
> It's not *that* trivial, because the overrideredirect makes
> the window completely unknown to the wm.
Ah. That type of notion of undecorated. It requires real cooperation
from the WM to achieve, and isn't currently supported in the core. I've
not read the specs on how to do this; the ICCCM is quite a bit clearer (!)
than some of the documents on extensions to the WM-client protocols, too
many of which are written in a style that reminds me of Motif for sheer
I bet it isn't hard to do though. Just set the right property. It can't
be too difficult on the other platforms either.
If I was doing this in the core, I'd do it in the [wm attributes] command.