Two fixes for setting up sizes of a new frame (Bug#19428).

* frame.c (x_set_frame_parameters): Call Fset_frame_size only if
f->can_x_set_window_size is true.
* xterm.c (x_set_window_size_1): Call change_frame_size with
text sizes instead of pixel sizes (Bug#19428).
This commit is contained in:
Martin Rudalics 2015-01-03 17:40:40 +01:00
parent 11ee7d8bf1
commit 8c38c2b77a
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2015-01-03 Martin Rudalics <rudalics@gmx.at>
* frame.c (x_set_frame_parameters): Call Fset_frame_size only if
f->can_x_set_window_size is true.
* xterm.c (x_set_window_size_1): Call change_frame_size with
text sizes instead of pixel sizes (Bug#19428).
2015-01-01 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (pos_visible_p): Fix up the X coordinate for

View file

@ -3219,7 +3219,7 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist)
if ((width_change && width != FRAME_TEXT_WIDTH (f))
|| (height_change && height != FRAME_TEXT_HEIGHT (f))
|| f->new_height || f->new_width)
|| f->can_x_set_window_size && (f->new_height || f->new_width))
{
/* If necessary provide default values for HEIGHT and WIDTH. Do
that here since otherwise a size change implied by an

View file

@ -9542,7 +9542,7 @@ x_set_window_size_1 (struct frame *f, bool change_gravity,
x_wait_for_event (f, ConfigureNotify);
else
{
change_frame_size (f, pixelwidth, pixelheight, false, true, false, true);
change_frame_size (f, width, height, false, true, false, true);
x_sync (f);
}
}