Mercurial > hg > xemacs-beta
comparison src/frame.c @ 4307:1bdc3bc255a4
[xemacs-hg @ 2007-12-05 08:26:00 by stephent]
Fix frame resize bug with multiple frames on one TTY. <878x4bxast.fsf@uwakimon.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 05 Dec 2007 08:26:03 +0000 |
parents | 62d532188a28 |
children | bc4f2511bbea |
comparison
equal
deleted
inserted
replaced
4306:0691e049c9a2 | 4307:1bdc3bc255a4 |
---|---|
3271 | 3271 |
3272 default_face_height_and_width (frame, &real_font_height, 0); | 3272 default_face_height_and_width (frame, &real_font_height, 0); |
3273 default_face_height_and_width_1 (frame, &font_height, &font_width); | 3273 default_face_height_and_width_1 (frame, &font_height, &font_width); |
3274 | 3274 |
3275 /* This size-change overrides any pending one for this frame. */ | 3275 /* This size-change overrides any pending one for this frame. */ |
3276 f->size_change_pending = 0; | |
3276 FRAME_NEW_HEIGHT (f) = 0; | 3277 FRAME_NEW_HEIGHT (f) = 0; |
3277 FRAME_NEW_WIDTH (f) = 0; | 3278 FRAME_NEW_WIDTH (f) = 0; |
3278 | 3279 |
3279 new_pixheight = newheight * font_height; | 3280 new_pixheight = newheight * font_height; |
3280 new_pixwidth = (newwidth - 1) * font_width; | 3281 new_pixwidth = (newwidth - 1) * font_width; |
3448 f->new_width = newwidth; | 3449 f->new_width = newwidth; |
3449 f->new_height = newheight; | 3450 f->new_height = newheight; |
3450 return; | 3451 return; |
3451 } | 3452 } |
3452 | 3453 |
3453 f->size_change_pending = 0; | |
3454 /* For TTY frames, it's like one, like all ... | 3454 /* For TTY frames, it's like one, like all ... |
3455 Can't have two TTY frames of different sizes on the same device. */ | 3455 Can't have two TTY frames of different sizes on the same device. */ |
3456 if (FRAME_TTY_P (f)) | 3456 if (FRAME_TTY_P (f)) |
3457 { | 3457 { |
3458 Lisp_Object frmcons; | 3458 Lisp_Object frmcons; |