aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2014-10-08 15:32:38 +0300
committerEli Zaretskii2014-10-08 15:32:38 +0300
commitc35e776245915b96e9e80dec5354d087fcdc18ff (patch)
treeef4e7a5eefcb4f63f6c53ee316e04743111a23de
parentd295469e8e3aa3d3ee0543aea1a59aad63c467dc (diff)
downloademacs-c35e776245915b96e9e80dec5354d087fcdc18ff.tar.gz
emacs-c35e776245915b96e9e80dec5354d087fcdc18ff.zip
Fix bug #18649 with handling C-g on MS-Windows in -nw sessions.
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.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/w32inevt.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6acd46594b0..07e4a148ba2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12014-10-08 Eli Zaretskii <eliz@gnu.org> 12014-10-08 Eli Zaretskii <eliz@gnu.org>
2 2
3 * w32inevt.c (maybe_generate_resize_event): Pass non-zero as the
4 DELAY argument to change_frame_size, so that the frame size
5 changes, if any are needed, are delayed until the next redisplay.
6 This is to avoid a too early QUIT inside change_frame_size, when
7 it calls Lisp in frame_windows_min_size, in case one of the events
8 we've read sets the quit-flag. (Bug#18649)
9
3 * w32fns.c (check_x_display_info): Accept terminal objects as 10 * w32fns.c (check_x_display_info): Accept terminal objects as
4 argument, to follow what xfns.c does. 11 argument, to follow what xfns.c does.
5 12
diff --git a/src/w32inevt.c b/src/w32inevt.c
index 3dcae11cc48..7d10d88155c 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -605,7 +605,7 @@ maybe_generate_resize_event (void)
605 change_frame_size (f, 605 change_frame_size (f,
606 1 + info.srWindow.Right - info.srWindow.Left, 606 1 + info.srWindow.Right - info.srWindow.Left,
607 1 + info.srWindow.Bottom - info.srWindow.Top 607 1 + info.srWindow.Bottom - info.srWindow.Top
608 - FRAME_MENU_BAR_LINES (f), 0, 0, 0, 0); 608 - FRAME_MENU_BAR_LINES (f), 0, 1, 0, 0);
609} 609}
610 610
611#if HAVE_W32NOTIFY 611#if HAVE_W32NOTIFY