Mercurial > emacs
comparison src/nsterm.m @ 102434:762aaa3e88a0
Include <signal.h> for SIGTERM used in ns_term_shutdown.
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Fri, 06 Mar 2009 19:07:00 +0000 |
parents | 6ad9dc785e40 |
children | a8e5be48f21f |
comparison
equal
deleted
inserted
replaced
102433:6d9c8e198f1c | 102434:762aaa3e88a0 |
---|---|
30 #include "config.h" | 30 #include "config.h" |
31 | 31 |
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" |
38 #include "blockinput.h" | 39 #include "blockinput.h" |
39 #include "sysselect.h" | 40 #include "sysselect.h" |
4472 if (!emacs_event) | 4473 if (!emacs_event) |
4473 return; | 4474 return; |
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; |
4487 } | 4487 } |
4488 | 4488 |