From: Jan Djärv Date: Wed, 25 Jul 2012 17:31:34 +0000 (+0200) Subject: * nsterm.m (ns_read_socket): Return early if there is a modal window. X-Git-Tag: emacs-24.2.90~1082 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=57ec30344f904155e4e8adfe823250de8e168463;p=emacs.git * nsterm.m (ns_read_socket): Return early if there is a modal window. Fixes: debbugs:12043 --- diff --git a/src/ChangeLog b/src/ChangeLog index 1e9e65192f7..700ff294c83 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-07-25 Jan Djärv + + * nsterm.m (ns_read_socket): Return early if there is a modal + window (Bug#12043). + 2012-07-25 Martin Rudalics * frame.c (Fredirect_frame_focus): In doc-string don't mention diff --git a/src/nsterm.m b/src/nsterm.m index e018ea34910..1f06d49c5b9 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -3411,6 +3411,9 @@ ns_read_socket (struct terminal *terminal, int expected, /* NSTRACE (ns_read_socket); */ + if ([NSApp modalWindow] != nil) + return -1; + if (interrupt_input_blocked) { interrupt_input_pending = 1;