]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #18649 with handling C-g on MS-Windows in -nw sessions.
authorEli Zaretskii <eliz@gnu.org>
Wed, 8 Oct 2014 12:32:38 +0000 (15:32 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 8 Oct 2014 12:32:38 +0000 (15:32 +0300)
 src/w32inevt.c (maybe_generate_resize_event): Pass non-zero as the
 DELAY argument to change_frame_size, so that the frame size
 changes, if any are needed, are delayed until the next redisplay.
 This is to avoid a too early QUIT inside change_frame_size, when
 it calls Lisp in frame_windows_min_size, in case one of the events
 we've read sets the quit-flag.

src/ChangeLog
src/w32inevt.c

index 6acd46594b0a97cec4d76d62df6c6844e214440b..07e4a148ba23cd62b9dc57168232ccc89e2db376 100644 (file)
@@ -1,5 +1,12 @@
 2014-10-08  Eli Zaretskii  <eliz@gnu.org>
 
+       * w32inevt.c (maybe_generate_resize_event): Pass non-zero as the
+       DELAY argument to change_frame_size, so that the frame size
+       changes, if any are needed, are delayed until the next redisplay.
+       This is to avoid a too early QUIT inside change_frame_size, when
+       it calls Lisp in frame_windows_min_size, in case one of the events
+       we've read sets the quit-flag.  (Bug#18649)
+
        * w32fns.c (check_x_display_info): Accept terminal objects as
        argument, to follow what xfns.c does.
 
index 3dcae11cc485c64bbfb4f3479b3809064bacdf42..7d10d88155c43b5b3ba2fea4d1781e824911f9bd 100644 (file)
@@ -605,7 +605,7 @@ maybe_generate_resize_event (void)
   change_frame_size (f,
                     1 + info.srWindow.Right - info.srWindow.Left,
                     1 + info.srWindow.Bottom - info.srWindow.Top
-                    - FRAME_MENU_BAR_LINES (f), 0, 0, 0, 0);
+                    - FRAME_MENU_BAR_LINES (f), 0, 1, 0, 0);
 }
 
 #if HAVE_W32NOTIFY