diff options
| author | Martin Rudalics | 2015-01-03 17:40:40 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2015-01-03 17:40:40 +0100 |
| commit | 8c38c2b77a5f0b256948bda0d3f9b6272483a42d (patch) | |
| tree | d87f6a0ee14c08b66b8f2f2aaa85c34fae256dcb /src | |
| parent | 11ee7d8bf16b8ee4fcb3659e4b09686ed8b10590 (diff) | |
| download | emacs-8c38c2b77a5f0b256948bda0d3f9b6272483a42d.tar.gz emacs-8c38c2b77a5f0b256948bda0d3f9b6272483a42d.zip | |
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).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d204ccf822d..6d25fc21f3b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2015-01-03 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * frame.c (x_set_frame_parameters): Call Fset_frame_size only if | ||
| 4 | f->can_x_set_window_size is true. | ||
| 5 | * xterm.c (x_set_window_size_1): Call change_frame_size with | ||
| 6 | text sizes instead of pixel sizes (Bug#19428). | ||
| 7 | |||
| 1 | 2015-01-01 Eli Zaretskii <eliz@gnu.org> | 8 | 2015-01-01 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * xdisp.c (pos_visible_p): Fix up the X coordinate for | 10 | * xdisp.c (pos_visible_p): Fix up the X coordinate for |
diff --git a/src/frame.c b/src/frame.c index 13b05c6b0fd..bdc914f75c5 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3219,7 +3219,7 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist) | |||
| 3219 | 3219 | ||
| 3220 | if ((width_change && width != FRAME_TEXT_WIDTH (f)) | 3220 | if ((width_change && width != FRAME_TEXT_WIDTH (f)) |
| 3221 | || (height_change && height != FRAME_TEXT_HEIGHT (f)) | 3221 | || (height_change && height != FRAME_TEXT_HEIGHT (f)) |
| 3222 | || f->new_height || f->new_width) | 3222 | || f->can_x_set_window_size && (f->new_height || f->new_width)) |
| 3223 | { | 3223 | { |
| 3224 | /* If necessary provide default values for HEIGHT and WIDTH. Do | 3224 | /* If necessary provide default values for HEIGHT and WIDTH. Do |
| 3225 | that here since otherwise a size change implied by an | 3225 | that here since otherwise a size change implied by an |
diff --git a/src/xterm.c b/src/xterm.c index 0a60bd14fdf..cf4aab0eb2d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9542,7 +9542,7 @@ x_set_window_size_1 (struct frame *f, bool change_gravity, | |||
| 9542 | x_wait_for_event (f, ConfigureNotify); | 9542 | x_wait_for_event (f, ConfigureNotify); |
| 9543 | else | 9543 | else |
| 9544 | { | 9544 | { |
| 9545 | change_frame_size (f, pixelwidth, pixelheight, false, true, false, true); | 9545 | change_frame_size (f, width, height, false, true, false, true); |
| 9546 | x_sync (f); | 9546 | x_sync (f); |
| 9547 | } | 9547 | } |
| 9548 | } | 9548 | } |