Re: Standardizing ConfigureRequest vs. size_inc hints



On Mon, Aug 19, 2002 at 02:47:50PM +0200, Dominik Vogt wrote:
> Maybe a general solution would be to write in the spec:
> 
>  - A change in the size_inc or base_size values never entails any
>    action by the WM.  If the application requires a size change,
>    it MUST trigger a ConfigureRequest.
>  - When the window manager receives a ConfigureRequest w/ size or
>    position set:
>    - If the WM honours the request it re-evaluates the size_inc
>      and chooses an appropriate size.
>    - If the WM ignores the request for some reason (window is
>      maximized or shaded; user has requested a fixed size etc.),
>      it at least re-evaluates the size_inc and corrects the
>      current window size if necessary.
> 
>      Note: The absolute amount of pixels this corrective step
>      entails is always smaller than the corresponding size_inc
>      calue, i.e. a 5x7 font size can entail a correction of no
>      more than +-4 by +-6 pixels.
> 
> I will test this approach in fvwm.

The code was surprisingly easy to write and it works very well, at
least for xterm and xemacs.  Now if I only could remember which
application(s) never send a ConfigureRequest...

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, dominik vogt gmx de
Reply-To: dominik vogt gmx de



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