Re: XForms: Problems resizing form containing a gl_canvas

From: J.P. Mellor (jpmellor@rose-hulman.edu)
Date: Sat Mar 09 2002 - 15:46:24 EST


spl@ncmir.ucsd.edu writes:
> # To subscribers of the xforms list from spl@ncmir.ucsd.edu :
> I cannot duplicate the problem on any system to which I have easy
> access, including Red Hat Linux 7.2, Solaris 8, IRIX 6.5, and OSF1,
> with either my own builds of XForms or with the "standard issue"
> builds.

Okay, I'm pretty sure the ConfigureNotify problem is with XForms.
I've modified my test program to include a raw event callback using
fl_register_raw_callback(). This callback prints a message when a
ConfigureNotify events is received and they shows up as expected when
the window is moved, resized, raised, etc. Most of these
ConfigureNotify events *do not* result in the
configure_notify_handler() being called. I don't think this is the
correct behavior -- at least for resizing shouldn't ConfigureNotify
raw event result in the configure_notify_handler() being called!?

Below is the modified test program and a trace showing the behavior.
The canvas is originally 640x480. The initial Expose event is
received correctly. I resize the window with the mouse to 607x455
(smaller). A raw ConfigureNotify event is generated, but nothing
else. I forced an expose by covering lowering/raising the canvas.
The canvas (object) has the correct size, but the window does not.
When resizing the window larger but <=640x480, Expose events are
generated, but the configure_notify_handler() is not called and the
window still has the wrong size. Finally, when the canvas is resized
larger then 640x480 the configure_notify_handler() is called and the
window size is correct.

jp

> ./configNotify
Expose: Window w=640 h=480; Object w=640 h=480
Raw event ConfigureNotify: Window w=640 h=480; Object w=640 h=480 - 607,455
Expose: Window w=640 h=480; Object w=607 h=455 - caused
Raw event ConfigureNotify: Window w=640 h=480; Object w=607 h=455 - 570,430
Raw event ConfigureNotify: Window w=640 h=480; Object w=570 h=430 - 580,440
Expose: Window w=640 h=480; Object w=580 h=440
Raw event ConfigureNotify: Window w=640 h=480; Object w=580 h=440 - 600,460
Expose: Window w=640 h=480; Object w=600 h=460
Raw event ConfigureNotify: Window w=640 h=480; Object w=600 h=460 - 600,490
Expose: Window w=640 h=480; Object w=600 h=490
Configure notify: Window w=600 h=490; Object w=600 h=490
Expose: Window w=600 h=490; Object w=600 h=490



_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/



This archive was generated by hypermail 2b29 : Wed May 01 2002 - 13:54:16 EDT