Re: Various comments, mostly on Implementation Notes



>Sasha_Vasko@osca.state.mo.us writes:
>|>Wouldn't it be possible to initially map the window with Static
>|>gravity, then change to whatever is required after the first map-notify
>|>event has arrived?
>|
>|AFAIK you cannot change your gravity unless you unmap your window,
>|change hints and then map it back. And that does not really do you any
>|good.
>
>I can't see anything stating this in the ICCCM (it says this explicitly
>for WM_CLASS, but nothing in the WM_NORMAL_HINTS section)

Heh, looking at my own code I can see that WM_NORMAL_HINTS can actually be
changed anytime :). One thing I wonder is what is supposed to happen when
gravity changes ? Like if I change gravity from Static to NorthWest - am I
supposed to use client's corner as a reference point or frame's corner ???
I can't seem to find anything about it in ICCCM. Logicaly it should be
client's corner. Confusing. Sounds like a good item to add to _NET specs.

>Also, xterm seems to temporarily change its gravity to NorthWest while
>changing font sizes. E.g. `xterm -geometry -100-100' then use C-button3
>to change to the unreadable font, and the top-left corner is anchored,
>even though the specified geometry gives it SouthEast gravity..?

yep, XV does similar things - it tries to adjust both hints and position
when
resizing self. Extremely nasty.

>
>    John

Sasha







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