XForms: Re: xforms bug, or window manager weirdness?

Stephen Langer (langer@cam.nist.gov)
Tue, 1 Sep 1998 15:32:41 -0400

# To subscribers of the xforms list from "Stephen Langer" <langer@cam.nist.gov> :

I posted this note a month ago but didn't get a response. Can anybody
reproduce the effect? Drag the mouse while placing a window, and the window
border is bigger than the contents. This is making my program crash.
(SGI, IRIX 6.4, XForms 0.88.1)

Thanks,
Steve

> Hi --
>
> On an SGI, if I drag the mouse instead if simply clicking while placing an
> XForms window on the screen, the window border is drawn larger than the
> window contents. This happens if fl_show uses FL_PLACE_FREE or
FL_PLACE_SIZE
> and full borders. Here's the demo program pushme.c modified to show the
> effect:
>
> #include "forms.h"
>
> int main(int argc, char *argv[])
> {
> FL_FORM *simpleform;
>
> fl_initialize(&argc, argv, "FormDemo", 0, 0);
> simpleform = fl_bgn_form(FL_UP_BOX,230,160);
> fl_add_button(FL_NORMAL_BUTTON,40,50,150,60,"Push Me");
> fl_end_form();
>
> fl_show_form(simpleform, FL_PLACE_FREE, FL_FULLBORDER, "PushMe");
> /* fl_show_form(simpleform, FL_PLACE_MOUSE, FL_NOBORDER, "PushMe"); */
>
> fl_do_forms();
> fl_hide_form(simpleform);
> return 0;
> }
>
> Run this, and drag the mouse down and to the left before releasing it
> when the window frame appears. The button and background for the window
> will be drawn at the size specified in fl_bgn_form(), but the window
> manager frame will be larger.
>
> The problem is leading to BadDrawable errors in my application,
> when a resized canvas object is confused about how big it really is.
> (I think... it's hard to reproduce, but it never happens unless I've
> dragged the mouse while placing a window.)
>
> Is this a bug in XForms, or do I have something set wrong in the window
> manager?
>
> -- Steve

-- 
-- EMail: stephen.langer@nist.gov                    Phone: (301) 975-5423 --
-- WWW:  http://math.nist.gov/mcsd/Staff/SLanger/    Fax:   (301) 990-4127 --
-- Mail: Building 820 Room 365; NIST; Gaithersburg, Md          20899-0001 --
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil   or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/