Make the frame shell dimensions something reasonable for the time being.

This commit is contained in:
ramiro 1998-04-14 17:01:41 +00:00
Родитель 075757394d
Коммит 7770266c12
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -421,6 +421,22 @@ Realize(Widget w,XtValueMask * mask,XSetWindowAttributes * wa)
_XfeInvokeCallbacks(w,fp->before_realize_callback,
XmCR_BEFORE_REALIZE,NULL,False);
/*
* This is a complete HACK. Hardcode the dimensions to 640x480
* until I write some clever code to compute dimensions from
* resources, command line, children preferred geometries, and
* other magical things.
*/
if (_XfeWidth(w) <= 2)
{
_XfeWidth(w) = 600;
}
if (_XfeHeight(w) <= 2)
{
_XfeHeight(w) = 480;
}
/* The actual realization is handled by the superclass */
(*topLevelShellWidgetClass->core_class.realize)(w,mask,wa);