Removing decorations from a window

roger rstmp at iinet.com.au
Tue Aug 23 21:58:19 CEST 2005


On Wed, 24 Aug 2005 01:47, Benedikt Meurer wrote:
> roger wrote:
> > You may try:
> > 	Widget wShell = ...;
> > 	XtVaSetValues (wShell, XtNoverrideRedirect, True, 0);
>
> a) It's not Xlib, but Athena/Motif :-)
> b) If you set OverrideRedirect on a window, it won't be maintained by
> the WM at all (atleast not in the way you expect it to), and that's
> probably not what you want either.
>
> > Roger
>
> Benedikt

Hi,

Though the use of overrideRedirect should be working whatever window manager 
is used, I realize that it is rather crude since you actually just tell the 
window manager to ignore the window. Hence you will need to set the window 
position as well:
	int x0 = ..., y0 = ...;
	XtVaSetValues (wShell, XtNx, x0, XtNy, y0, 0);

At work, we just use:
	int decorations = ...; // 0 if you want nothing
	XtVaSetValues(wShell, XmNmwmDecorations, decorations, 0);
where XmNmwmDecorations is "mwmDecorations".
(We also play with XmNmwmFunctions)
I believe this works fine with xfce/xfwm, but I'm not sure it would with some 
of the other window managers out there (kde/kwin?).

Anyway, those could be possible "solutions" in addition to yours (which I 
wasn't aware at all, actually) for Chris.

Roger



More information about the Xfce mailing list