diff src/dispnew.c @ 106765:0c270bc7ceff

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).
author Jan D. <jan.h.d@swipnet.se>
date Fri, 08 Jan 2010 12:41:57 +0100
parents 21bdda3ded62
children 1d1d5d9bd884 886b2b7fcdba
line wrap: on
line diff
--- a/src/dispnew.c	Fri Jan 08 07:58:54 2010 +0100
+++ b/src/dispnew.c	Fri Jan 08 12:41:57 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;