comparison 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
comparison
equal deleted inserted replaced
2449:841c5ab546e1 2450:ce8038b28f80
241 if (height == 0) 241 if (height == 0)
242 height = w->core.height; 242 height = w->core.height;
243 243
244 /* do nothing if we're already that size */ 244 /* do nothing if we're already that size */
245 if (w->core.width != width || w->core.height != height) 245 if (w->core.width != width || w->core.height != height)
246 if (XtMakeResizeRequest (w, width, height, &w->core.width, &w->core.height) 246 {
247 == XtGeometryAlmost) 247 XtGeometryResult result =
248 XtMakeResizeRequest (w, w->core.width, w->core.height, NULL, NULL); 248 XtMakeResizeRequest (w, width, height, &w->core.width, &w->core.height);
249 249 if (result == XtGeometryNo)
250 Resize (w); 250 return;
251 } 251 if (result == XtGeometryAlmost)
252 252 XtMakeResizeRequest (w, w->core.width, w->core.height, NULL, NULL);
253 253 Resize (w);
254 }
255 }
256
257