From 57ec30344f904155e4e8adfe823250de8e168463 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 25 Jul 2012 19:31:34 +0200 Subject: [PATCH] * nsterm.m (ns_read_socket): Return early if there is a modal window. Fixes: debbugs:12043 --- src/ChangeLog | 5 +++++ src/nsterm.m | 3 +++ 2 files changed, 8 insertions(+) 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; -- 2.39.2