aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2010-01-08 12:41:57 +0100
committerJan Djärv2010-01-08 12:41:57 +0100
commit5075d8535904317a9dff2ff3eebbc7540cc587c0 (patch)
tree27a59c5fb437a175e08e49384bf99372d5b220c0 /src
parentb2752fa9367155fc368e4b23738527f4239f05e9 (diff)
downloademacs-5075d8535904317a9dff2ff3eebbc7540cc587c0.tar.gz
emacs-5075d8535904317a9dff2ff3eebbc7540cc587c0.zip
Frame width was not updated in fullscreen when scroll bars where removed/added.
(change_frame_size_1): newwidth == FRAME_COLS (f) must also be true before we can return early (bug #5339).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dispnew.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b7ecf6b7297..fd32d739bc0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2
3 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4 also be true before we can return early (bug #5339).
5
12010-01-06 David Reitter <david.reitter@gmail.com> 62010-01-06 David Reitter <david.reitter@gmail.com>
2 7
3 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS. 8 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
diff --git a/src/dispnew.c b/src/dispnew.c
index 0039ec0d181..3ed5469c063 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6340,8 +6340,11 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe)
6340 check_frame_size (f, &newheight, &newwidth); 6340 check_frame_size (f, &newheight, &newwidth);
6341 6341
6342 /* If we're not changing the frame size, quit now. */ 6342 /* If we're not changing the frame size, quit now. */
6343 /* Frame width may be unchanged but the text portion may change, for example,
6344 fullscreen and remove/add scroll bar. */
6343 if (newheight == FRAME_LINES (f) 6345 if (newheight == FRAME_LINES (f)
6344 && new_frame_total_cols == FRAME_TOTAL_COLS (f)) 6346 && newwidth == FRAME_COLS (f) // text portion unchanged
6347 && new_frame_total_cols == FRAME_TOTAL_COLS (f)) // frame width unchanged
6345 return; 6348 return;
6346 6349
6347 BLOCK_INPUT; 6350 BLOCK_INPUT;