Removing decorations from a window

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Tue Aug 23 17:47:58 CEST 2005


roger wrote:
>>>>Well, I only know that for GTK there exists a function
>>>>gtk_window_set_decorated ();. I presume this function uses either motif
>>>>hints or hints from the EWMH specification defined on freedesktop.org.
>>>
>>>It's part of the MWM hints, which are supported by nearly every window
>>>manager today, and it's completely independent of Xlib, GTK+, etc. (i.e.
>>>XCB will do as well). It's simply a property on the window.
>>
>>OK, so can anyone tell me how I can get at this hint from Xlib
>>functions please.
> 
> 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



More information about the Xfce mailing list