changeset 106766:89ca5bbe8e71

* dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must also be true before we can return early (bug #5339).
author Jan D. <jan.h.d@swipnet.se>
date Fri, 08 Jan 2010 12:43:09 +0100
parents 28260028067c (current diff) 0c270bc7ceff (diff)
children a66a1275eccd b9e9be0fb18c 8cf74d7922ce 886b2b7fcdba c80b29e796ea
files
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Jan 08 10:54:58 2010 +0900
+++ b/src/ChangeLog	Fri Jan 08 12:43:09 2010 +0100
@@ -1,3 +1,8 @@
+2010-01-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+	* dispnew.c (change_frame_size_1): newwidth == FRAME_COLS  (f) must
+	also be true before we can return early (bug #5339).
+
 2010-01-06  David Reitter  <david.reitter@gmail.com>
 
 	* nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
--- a/src/dispnew.c	Fri Jan 08 10:54:58 2010 +0900
+++ b/src/dispnew.c	Fri Jan 08 12:43:09 2010 +0100
@@ -6340,8 +6340,11 @@
   check_frame_size (f, &newheight, &newwidth);
 
   /* If we're not changing the frame size, quit now.  */
+  /* Frame width may be unchanged but the text portion may change, for example,
+     fullscreen and remove/add scroll bar.  */
   if (newheight == FRAME_LINES (f)
-      && new_frame_total_cols == FRAME_TOTAL_COLS (f))
+      && newwidth == FRAME_COLS  (f) // text portion unchanged
+      && new_frame_total_cols == FRAME_TOTAL_COLS (f)) // frame width unchanged
     return;
 
   BLOCK_INPUT;