]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (ns_read_socket): Return early if there is a modal window.
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 25 Jul 2012 17:31:34 +0000 (19:31 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 25 Jul 2012 17:31:34 +0000 (19:31 +0200)
Fixes: debbugs:12043
src/ChangeLog
src/nsterm.m

index 1e9e65192f7a135da120f0080698ec0acedd9be5..700ff294c83e8ce3ce0e29350bd555515e230bc9 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-25  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_read_socket): Return early if there is a modal
+       window (Bug#12043).
+
 2012-07-25  Martin Rudalics  <rudalics@gmx.at>
 
        * frame.c (Fredirect_frame_focus): In doc-string don't mention
index e018ea349105911ae801603c0914e30e67d63276..1f06d49c5b9d6b4585f3334869d178ba310b41a4 100644 (file)
@@ -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;