# HG changeset patch # User Adrian Robert # Date 1236366420 0 # Node ID 762aaa3e88a00d97e1db2aca0e4ef7fa644b0d32 # Parent 6d9c8e198f1c2c42d684b74d4d0c5a229a60e7be Include for SIGTERM used in ns_term_shutdown. diff -r 6d9c8e198f1c -r 762aaa3e88a0 src/nsterm.m --- a/src/nsterm.m Fri Mar 06 19:06:45 2009 +0000 +++ b/src/nsterm.m Fri Mar 06 19:07:00 2009 +0000 @@ -32,6 +32,7 @@ #include #include #include +#include #include #include "lisp.h" @@ -4474,13 +4475,12 @@ if (![[self window] isKeyWindow]) { - /* XXX: Using NO_SOCK_SIGIO like Carbon causes a condition in which, - when Emacs display updates a different frame from the current one, - and temporarily selects it, then processes some interrupt-driven - input (dispnew.c:3878), OS will send the event to the correct NSWindow, - but for some reason that window has its first responder set to the - NSView most recently updated (I guess), which is not the correct one. - UPDATE: After multi-TTY merge this happens even w/o NO_SOCK_SIGIO */ + /* XXX: There is an occasional condition in which, when Emacs display + updates a different frame from the current one, and temporarily + selects it, then processes some interrupt-driven input + (dispnew.c:3878), OS will send the event to the correct NSWindow, but + for some reason that window has its first responder set to the NSView + most recently updated (I guess), which is not the correct one. */ if ([[theEvent window] isKindOfClass: [EmacsWindow class]]) [(EmacsView *)[[theEvent window] delegate] keyDown: theEvent]; return;