aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Robert2009-03-06 19:07:00 +0000
committerAdrian Robert2009-03-06 19:07:00 +0000
commite863926a7bd437476ea7a789084270cd346e9381 (patch)
tree24b766d24dbf66fe0e30d72eadacffc79c1e9e0c /src
parent84ee8aba37b4e3a3d75f03123d3ddb7243b7bb23 (diff)
downloademacs-e863926a7bd437476ea7a789084270cd346e9381.tar.gz
emacs-e863926a7bd437476ea7a789084270cd346e9381.zip
Include <signal.h> for SIGTERM used in ns_term_shutdown.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 6ebf49f77c1..1b7301084d0 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -32,6 +32,7 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu)
32#include <math.h> 32#include <math.h>
33#include <sys/types.h> 33#include <sys/types.h>
34#include <time.h> 34#include <time.h>
35#include <signal.h>
35#include <unistd.h> 36#include <unistd.h>
36 37
37#include "lisp.h" 38#include "lisp.h"
@@ -4474,13 +4475,12 @@ extern void update_window_cursor (struct window *w, int on);
4474 4475
4475 if (![[self window] isKeyWindow]) 4476 if (![[self window] isKeyWindow])
4476 { 4477 {
4477 /* XXX: Using NO_SOCK_SIGIO like Carbon causes a condition in which, 4478 /* XXX: There is an occasional condition in which, when Emacs display
4478 when Emacs display updates a different frame from the current one, 4479 updates a different frame from the current one, and temporarily
4479 and temporarily selects it, then processes some interrupt-driven 4480 selects it, then processes some interrupt-driven input
4480 input (dispnew.c:3878), OS will send the event to the correct NSWindow, 4481 (dispnew.c:3878), OS will send the event to the correct NSWindow, but
4481 but for some reason that window has its first responder set to the 4482 for some reason that window has its first responder set to the NSView
4482 NSView most recently updated (I guess), which is not the correct one. 4483 most recently updated (I guess), which is not the correct one. */
4483 UPDATE: After multi-TTY merge this happens even w/o NO_SOCK_SIGIO */
4484 if ([[theEvent window] isKindOfClass: [EmacsWindow class]]) 4484 if ([[theEvent window] isKindOfClass: [EmacsWindow class]])
4485 [(EmacsView *)[[theEvent window] delegate] keyDown: theEvent]; 4485 [(EmacsView *)[[theEvent window] delegate] keyDown: theEvent];
4486 return; 4486 return;