dvb@emisle.emisle (David Van Beveren) (01/19/91)
This problem has me baffled. I have a product that runs under a variety of window managers (basically, whatever WM the customer wants). Part of the program allows the user to pop up any of many different DialogShells, and the user can save this configuration for start-up next session. Saving includes saving the size and position of the windows. However, when I get the 0,0 position of the Shell widget, (Using any method: from XTranslatCoordinates or XtTranslateCoords or shell_widget->core.x, which all return the same coordinates) I do not get the coordinates of the WM frame. Fine. EXCEPT that, when I use these coordinates in an arg list (XmNx, XmNy), the thing that gets put here is the corner of the WM frame, not the corner of the original window. This makes all windows shift down by the height of the WM title and right by the width of the WM border. There is a solution to this in Motif (???isFrame??? resource) but that does not really help me, especially for olwm and twm, the two other main WM's in use. Respond via e-mail and I will summarize responses. David Van Beveren INTERNET: emisle!dvb@ism.isc.com EIS ltd. Professional Software Services UUCP: ..uunet!emisle!dvb voice: (818) 587-1247