[comp.windows.x] X11R4 Xt potential Bug

jlv@CS.BROWN.EDU (Jeff Louis Vogel) (09/22/90)

I just switched from R3 to R4 Xt and noticed the following bug
(or undocumented misfeature).

When I set XtNminHeight and XtNminWidth on a topLevelShellWidget,
the default geometry gets all messed up.
The window somes up much bigger than it is set in the .Xdefaults file.
The min_height and min_width, however, still work, since the window
manager recognizes the hints and won't let me resize the window to be
bigger than XtNmaxHeight,width, or smaller than XtNminHeight,width.

If I comment out the SetValues calls for XtNminWidth and XtNminHeight, the windwo
comes up to be the right sizes, those specified in the .Xdefaults file.

I am using R4 twm by the way.


Any help would be greatly appreciated. 


-Jeff Vogel

swick@ATHENA.MIT.EDU (Ralph Swick) (09/23/90)

    When I set XtNminHeight and XtNminWidth on a topLevelShellWidget,
    the default geometry gets all messed up.
    The window somes up much bigger than it is set in the .Xdefaults file.

I am unable to reproduce your problem from this description.
Both XtSetValues immediately after creating a topLevelShell and
putting values in the resource database for minWidth and minHeight
work fine for me.  If you can construct a short example to
reproduce your problem, we might be able to help you more.