Mercurial > hg > xemacs-beta
comparison src/EmacsManager.c @ 3381:374186f156d5
[xemacs-hg @ 2006-05-06 17:55:58 by stephent]
metacity maximization fix, see src/ChangeLog.
<87ejz7t57b.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Sat, 06 May 2006 17:56:00 +0000 |
parents | ce8038b28f80 |
children | 383ab474a241 |
comparison
equal
deleted
inserted
replaced
3380:72f5451ab2f0 | 3381:374186f156d5 |
---|---|
239 if (width == 0) | 239 if (width == 0) |
240 width = w->core.width; | 240 width = w->core.width; |
241 if (height == 0) | 241 if (height == 0) |
242 height = w->core.height; | 242 height = w->core.height; |
243 | 243 |
244 /* #### AFAICT this gets called in two places. One is in ChangeManaged(), | |
245 above. The other is in EmacsFrameResize(). Perhaps ChangeManaged() | |
246 should initiate resize requests, but EmacsFrameResize() should not. | |
247 Unfortunately, I've tried making this conditional on whether we're | |
248 called from EmacsFrameResize() or not, but that results in an infloop | |
249 via the callback to x_layout_widgets() in Resize(). Whee! */ | |
244 /* do nothing if we're already that size */ | 250 /* do nothing if we're already that size */ |
245 if (w->core.width != width || w->core.height != height) | 251 if (w->core.width != width || w->core.height != height) |
246 { | 252 { |
247 XtGeometryResult result = | 253 XtGeometryResult result = |
248 XtMakeResizeRequest (w, width, height, &w->core.width, &w->core.height); | 254 XtMakeResizeRequest (w, width, height, &w->core.width, &w->core.height); |