Re: resizing with gravity



Dan Winship wrote:
>
> [The EWMH] proceeds to explain window gravity in a manner that, I'm
> fairly certain, is exactly wrong:
>
> > If an Application requests just a new size, its reference point does
> > not move. So for example if client window has win_gravity
> > SouthEastGravity and is resized, the bottom right corner of its frame
> > will not move but instead the top left corner will be adjusted by the
> > difference in size.
>
> There is nothing in the ICCCM that supports this idea. [...]
>
> Here's the entirety of what the ICCCM says about
> WM_NORMAL_HINTS.win_gravity:
>
> > 4.1.2.3. WM_NORMAL_HINTS Property
> > [...]
> > 4.1.5. Configuring the Window
> >
> > The border width to be used and win_gravity position hint to be used
> > are those most recently requested by the client.

Section 4.1.5 also says:

| Client configure requests are interpreted by the window
| manager in the same manner as the initial window geometry mapped
| from the Withdrawn state, as described in section 4.1.2.3.

I've always taken this sentence to imply the behavior specified
in the EWMH.  But this is clearly unclear :-( ...


--Joe English

  jenglish flightlab com



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