XForms: fl_set_form_position doesn't work as expected

Dick Middleton (dick@sqf.hp.com)
Wed, 8 Apr 1998 14:10:29 +0100

# To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> # To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > Here is a question: Is is possible to ask the window manager
> > for the size of the decorations. Then I could kludge up some offsets
> > and subtract out the bizarre behavior.

> Well, sort of.

> You can find the parent window using XQueryTree() and then get the
> origins, border width, and window size using XGetWindowAttributes().
> I've done this and it works in the limited testing I've done (tvtwm
> and 4Dwm).

This doesn't seem to work on vuewm (HP-VUE); border_width is always returned
as zero.

You can, I think, subtract the form origin as returned by
XGetWindowAttributes() from the form position given by form->x and form->y to
get the top and side border widths.

Dick

-------------------------------------------------------------------------------

Dick Middleton
Phone: +44 131-331 7530
Fax: +44 131-331 7443 ( )
email: dick@sqf.hp.com ( )
( )
( ) . ~ ~ ~ ~~ .
( ) _______
( ) |
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )-------------------------------------
- I'd rather be soaring
_________________________________________________
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/