Mercurial > hg > xemacs-beta
diff src/EmacsManager.c @ 2450:ce8038b28f80
[xemacs-hg @ 2004-12-22 10:58:58 by stephent]
metacity maximize fix <87is6uppl8.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 22 Dec 2004 10:59:09 +0000 |
parents | 04bc9d2f42c7 |
children | 374186f156d5 |
line wrap: on
line diff
--- a/src/EmacsManager.c Tue Dec 21 22:51:48 2004 +0000 +++ b/src/EmacsManager.c Wed Dec 22 10:59:09 2004 +0000 @@ -243,11 +243,15 @@ /* do nothing if we're already that size */ if (w->core.width != width || w->core.height != height) - if (XtMakeResizeRequest (w, width, height, &w->core.width, &w->core.height) - == XtGeometryAlmost) - XtMakeResizeRequest (w, w->core.width, w->core.height, NULL, NULL); - - Resize (w); + { + XtGeometryResult result = + XtMakeResizeRequest (w, width, height, &w->core.width, &w->core.height); + if (result == XtGeometryNo) + return; + if (result == XtGeometryAlmost) + XtMakeResizeRequest (w, w->core.width, w->core.height, NULL, NULL); + Resize (w); + } }