Re: XForms: fl_set_form_position doesn't work as expected

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 2 Apr 98 11:39:53 PST

# 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).

BTW, I find that windows created with the FL_TRANSIENT option seem to
end up where I expect them to be -- of course there is not necessarily
any window mangler decoration, which can be a pain if you need to drag
the window around for any reason -- but if I'm going to be anal about
window placement, then I probably *don't* want the luser dragging
things around...

spl
_________________________________________________
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/