Re: frame size hints - for Wine



On Wed, Jan 29, 2003 at 08:02:39AM +0900, Mike McCormack wrote:
> 
> Yeah, that's exactly the sort of thing I'm looking for... I just 
> downloaded enlightenment to try it out (I think I'll use it too ;-).  It 
> would be nice to have something like that in the spec. I wonder if any 
> other window managers implement similar things?

No, I think that would be a very bad idea.  First, applications
should not have to worry about their decorations.  Second, when
the application finds out the expected size of the decorations,
the information may already be obsolete.  And third, the window
manager may not be able to find out the actual values before the
window becomes mapped.  This may depend on many properties of the
window which the WM can not find out beforehand, for example the
MWM hints, whether the window is transient for a valid, mapped
third window, its name, class, resource or icon name, whether the
window is mapped as an icon (and the WM allows icons at all), the
window group it belongs to, the position of the pointer, the
screen it is mapped on, and so on.

All these problems can be avoided by a "place frame at" protocol.

> Carsten Haitzler (The Rasterman) wrote:
> 
> >i agree it would be good to have such a hint... :)
> >
> >i don't think it's bad design... there isn't a reason NOT to provide this
> >info... in fact Enlightenment does. the _E_FRAME_SIZE property is set on 
> >the
> >client window (and updated whenever the border padding sizes change) to 
> >let the
> >app know how big the frame is on the top, bottom, left and right borders 
> >(the

Bye

Dominik ^_^  ^_^



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]