Re: move/resize handling again



On Tue, Nov 12, 2002 at 01:18:45AM +0100, Matthias Clasen wrote:

> Today I stumbled over another forgotten detail of ICCCM move/resize
> handling: Section 7.7 explains how

What exactly are you refering to?  There is no section 7.7 in the
ICCCM, and I can see nothing that talks specifically about
XMoveWindow() or XResizeWindow() in any of the ICCCM sections.

> the is supposed to react to
    ^^^

the wm?

> XMoveWindow (calculate a new reference point and place the frame
> reference point there) and to XResizeWindow (keep the reference point
> fixed). But it doesn't say anything about XMoveResizeWindow. Should the
> wm treat this as equivalent to move, resize or to resize, move ?
> Currently Metacity seems to use resize, move, but IMO move, resize makes
> more sense.

> On Tue, 2002-11-12 at 00:52, Owen Taylor wrote:
> > 
> > I believe the 45, 45 location is correct ... what is most logical is
> > that the reference point for the new position of the window should
> > depend solely on the data in the MoveResize request, and not on the
> > history of the window's position.
> > 
> > Or, in other words, the resulting position should be that of a window
> > newly mapped with the given (x, y, width, height).
> 
> Good point. So should we specify that XMoveResize is handled as resize,
> move ? 

No, the ICCCM2 already specifies how XMoveResizeWindow() has to be
treated by the window manager.  Since this generates a
ConfigureRequest package, section 4.1.5 of the ICCCM applies.  The
window manager has no choice at all in that matter because it can
not even distinguish between XConfigureWindow() and
XMoveResizeWindow().

Bye

Dominik ^_^  ^_^



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