Re: FVWM: fltk window resizing

From: Isaque Galdino de Araujo <isaque_at_uol.com.br>
Date: Mon, 10 Feb 2003 13:58:10 -0200

On Mon, 10 Feb 2003 12:59:12 -0200 Isaque Galdino de Araujo wrote:

> On Fri, 07 Feb 2003 08:26:17 -0500 Dan Espen wrote:
>
> > If you're not working from source, you might want to forward this to
> > the fltk developers.
> I'll do that. Thank you!
>
>

Dan, I've sent to the fltk development people, what you suggested, and this is what they send me back:

--- cut here ---
isaque at uol dot com dot br wrote:
> ...
> An application is supposed to redraw itself when it recieves a
> ConfigureNotify event. Fvwm is sending the ConfigureNotify, but
> fltk purposely doesn't redraw itself when it gets that event,
> it waits for an expose event instead.
> ...

Actually, I checked the Xlib Programming Manual and the
documentation on ConfigureNotify seems to indicate that the
application should only force/perform a redraw for Expose and
GraphicsExpose events - ConfigureNotify ONLY specifies that the
window has been resized. From page 75:

     The ConfigureNotify branch, in all applications, will calculate
     the values of variables based on the new window size. These
     variable values will then be used to calculate where to draw
     things in the Expose branch the next time an Expose event
     occurs. A ConfigureNotify event is always followed by one or
     more Expose events.

Note the last sentence, which is supported in other sections of
the same manual...

So either fvwm or X server is at fault for not following the X11
specification, and given that only fvwm seems to exibit this
problem, it is likely a fvwm bug.

Setting the redraw() flag but not waiting for an expose could cause
unnecessary redraws on compliant window managers, so I'm not inclined
to add this "fix" to FLTK...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com
--- cut here ---
Please, check out that and see what you can do about that!
Thank you!
-- 
Isaque Galdino de Araujo             Slackware, Agenda VR3, Vim and Cygwin user.
http://sites.uol.com.br/isaque                        Java and C/C++ programmer.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Feb 10 2003 - 09:59:56 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST