Re: Weird widget size problem with X11 and Motif
Re: Weird widget size problem with X11 and Motif
- Subject: Re: Weird widget size problem with X11 and Motif
- From: Sean Ahern <email@hidden>
- Date: Thu, 10 Jul 2003 12:55:43 -0700
Dave Williss wrote:
> I have a strange size problem using Apple's X11 (The beta 3 version)
> and a Motif window. If I create a window using XmCreateFormDialog()
> and then later call a function that eventually does...
>
> XtSetArg(arg[0], XmNheight, 100);
> XtSetArg(arg[1], XmNwidth, 100);
> XtSetValues(form, arg, 2);
>
> The resulting form is 122 pixels high. It just so happens that the title
> bar that quartz-wm puts on the dialog is 22 pixels high. This only happens
> using Apple's X11 with quartz-wm, not with other X servers (I have not tried
> other window managers with apple's X11 - not sure how to do that).
Probably:
% killall quartz-wm; mwm
In my experience, you will get different behavior with different window
managers. Since your XtSetValues is on the X server window, not the X11
window that the window manager creates as its parent, the argument can be made
that quartz-wm is behaving "correctly".
I'm sure the ICCCM conventions have something to say about this.
Getting window creation positions, sizes, movement, and resizes correct is a
hard problem, in my experience.
(In fact, one of our apps tries to figure this out at startup. It creates a
tiny window and queries everything about its position, size, resize handles,
etc. It then moves it a known distance and queries it again. This information
allows us to always accurately size and position any windows in any window
manager, no matter how badly behaved. But it's annoying.)
-Sean
__
email@hidden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.