Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
3380:72f5451ab2f0 | 3381:374186f156d5 |
---|---|
505 defi(Qheight, XtNheight); | 505 defi(Qheight, XtNheight); |
506 defi(Qleft, XtNx); | 506 defi(Qleft, XtNx); |
507 defi(Qtop, XtNy); | 507 defi(Qtop, XtNy); |
508 | 508 |
509 #undef def | 509 #undef def |
510 #undef defi | |
510 } | 511 } |
511 | 512 |
512 static Lisp_Object | 513 static Lisp_Object |
513 color_to_string (Widget w, unsigned long pixel) | 514 color_to_string (Widget w, unsigned long pixel) |
514 { | 515 { |
2305 | 2306 |
2306 static void | 2307 static void |
2307 x_set_frame_size (struct frame *f, int cols, int rows) | 2308 x_set_frame_size (struct frame *f, int cols, int rows) |
2308 { | 2309 { |
2309 EmacsFrameSetCharSize (FRAME_X_TEXT_WIDGET (f), cols, rows); | 2310 EmacsFrameSetCharSize (FRAME_X_TEXT_WIDGET (f), cols, rows); |
2311 | |
2312 if (!wedge_metacity) /* cf. EmacsFrameResize */ | |
2313 { | |
2314 /* Kick the manager so that it knows we've changed size. */ | |
2315 XtWidgetGeometry req, repl; | |
2316 req.request_mode = 0; | |
2317 XtQueryGeometry (FRAME_X_CONTAINER_WIDGET (f), &req, &repl); | |
2318 EmacsManagerChangeSize (FRAME_X_CONTAINER_WIDGET (f), | |
2319 repl.width, repl.height); | |
2320 } | |
2321 | |
2310 #if 0 | 2322 #if 0 |
2311 /* this is not correct. x_set_frame_size() is called from | 2323 /* this is not correct. x_set_frame_size() is called from |
2312 Fset_frame_size(), which may or may not have been called | 2324 Fset_frame_size(), which may or may not have been called |
2313 by the user (e.g. update_EmacsFrame() calls it when the font | 2325 by the user (e.g. update_EmacsFrame() calls it when the font |
2314 changes). For now, don't bother with getting this right. */ | 2326 changes). For now, don't bother with getting this right. */ |