Mercurial > hg > xemacs-beta
diff src/frame-x.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 | ad2f4ae9895b |
children | 168e8d8a55be |
line wrap: on
line diff
--- a/src/frame-x.c Sat May 06 08:46:38 2006 +0000 +++ b/src/frame-x.c Sat May 06 17:56:00 2006 +0000 @@ -507,6 +507,7 @@ defi(Qtop, XtNy); #undef def +#undef defi } static Lisp_Object @@ -2307,6 +2308,17 @@ x_set_frame_size (struct frame *f, int cols, int rows) { EmacsFrameSetCharSize (FRAME_X_TEXT_WIDGET (f), cols, rows); + + if (!wedge_metacity) /* cf. EmacsFrameResize */ + { + /* Kick the manager so that it knows we've changed size. */ + XtWidgetGeometry req, repl; + req.request_mode = 0; + XtQueryGeometry (FRAME_X_CONTAINER_WIDGET (f), &req, &repl); + EmacsManagerChangeSize (FRAME_X_CONTAINER_WIDGET (f), + repl.width, repl.height); + } + #if 0 /* this is not correct. x_set_frame_size() is called from Fset_frame_size(), which may or may not have been called