Removing decorations from a window

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Mon Aug 22 17:40:53 CEST 2005


Jasper Huijsmans wrote:
>>Further to my previous enquiry about removing decorations from a
>>window, I seem to be between two opposing camps arguing about how this
>>should be done but with neither camp giving me the tools to do it!
>>
>>Since the decorations are created (and customised) by the Window
>>Manager it seems to me reasonable that the Window Manager should offer
>>options which allow one to say that certain windows should have no
>>decorations.  However the xfce Window manager doesn't seem to offer
>>this possibility.
>>
>>So I go to the other end and look at the options in Xlib and there all
>>I find is that, since the decorations are created by the Window
>>Manager it's non-portable to have functions to remove the decorations
>>from the client end.
>>
>>Grrrr!
>>
>>It's surely possible because some of the xfce utilities don't have
>>decorations, maybe I'll end up having to look at the source code for
>>them but I fear they go through GTK etc. and I want the basic Xlib
>>functions to get a window without decorations.
>>
>>The 'right' solution to my mind is that it should be configurable in
>>xfwm, is this do-able?
> 
> 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.

Really, people, you should think of what you say. On the one hand you
complain that window managers are "bloated" and slow; and on the other
hand you request to add more unnecessary code to xfwm4.

> 	Jasper

Benedikt



More information about the Xfce mailing list