Mercurial > hg > xemacs-beta
comparison src/EmacsFrame.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 | facf3239ba30 |
children | 383ab474a241 |
comparison
equal
deleted
inserted
replaced
3380:72f5451ab2f0 | 3381:374186f156d5 |
---|---|
358 update_various_frame_slots (ew); | 358 update_various_frame_slots (ew); |
359 | 359 |
360 pixel_to_char_size (f, ew->core.width, ew->core.height, &columns, &rows); | 360 pixel_to_char_size (f, ew->core.width, ew->core.height, &columns, &rows); |
361 change_frame_size (f, rows, columns, 0); | 361 change_frame_size (f, rows, columns, 0); |
362 | 362 |
363 /* Now we tell the EmacsShell that we've changed the size of the non-fixed | 363 /* The code below is just plain wrong. If the EmacsShell or EmacsManager |
364 portion of the frame. Note that, if we the resize occurred as a result | 364 needs to know, they should just ask. If needed information is being |
365 of EmacsFrameSetCharSize(), this information will be stored twice. | 365 updated here, then we should set a dirty flag and have it updated on an |
366 This is not a big deal, as storing this information doesn't actually | 366 as-needed basis. |
367 do anything until the next resize. */ | 367 For now, conditionalize so people can get work done if this breaks |
368 if (FRAME_X_TOP_LEVEL_FRAME_P (f)) | 368 something. */ |
369 x_wm_set_variable_size (FRAME_X_SHELL_WIDGET (f), columns, rows); | 369 if (wedge_metacity) /* cf. x_set_frame_size */ |
370 | 370 { |
371 /* Kick the manager so that it knows we've changed size. */ | 371 /* Now we tell the EmacsShell that we've changed the size of the |
372 req.request_mode = 0; | 372 non-fixed portion of the frame. Note that, if the resize occurred |
373 XtQueryGeometry (FRAME_X_CONTAINER_WIDGET (f), &req, &repl); | 373 as a result of EmacsFrameSetCharSize(), this information will be |
374 EmacsManagerChangeSize (FRAME_X_CONTAINER_WIDGET (f), repl.width, | 374 stored twice. This is not a big deal, as storing this information |
375 repl.height); | 375 doesn't actually do anything until the next resize. */ |
376 if (FRAME_X_TOP_LEVEL_FRAME_P (f)) | |
377 x_wm_set_variable_size (FRAME_X_SHELL_WIDGET (f), columns, rows); | |
378 | |
379 /* Kick the manager so that it knows we've changed size. | |
380 #### No, no, no! If this does anything at all, it will involve | |
381 changing the manager's size. That's not something that a child | |
382 widget should initialize as part of a purely informational | |
383 method!! */ | |
384 req.request_mode = 0; | |
385 XtQueryGeometry (FRAME_X_CONTAINER_WIDGET (f), &req, &repl); | |
386 EmacsManagerChangeSize (FRAME_X_CONTAINER_WIDGET (f), | |
387 repl.width, repl.height); | |
388 } | |
376 } | 389 } |
377 | 390 |
378 static Boolean | 391 static Boolean |
379 EmacsFrameSetValues (Widget cur_widget, Widget UNUSED (req_widget), | 392 EmacsFrameSetValues (Widget cur_widget, Widget UNUSED (req_widget), |
380 Widget new_widget, ArgList argv, Cardinal *argc) | 393 Widget new_widget, ArgList argv, Cardinal *argc) |