Commit 8c38c2b7 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

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).
parent 11ee7d8b
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
......
......@@ -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
......
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment