Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e863926a
Commit
e863926a
authored
Mar 06, 2009
by
Adrian Robert
Browse files
Include <signal.h> for SIGTERM used in ns_term_shutdown.
parent
84ee8aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/nsterm.m
src/nsterm.m
+7
-7
No files found.
src/nsterm.m
View file @
e863926a
...
...
@@ -32,6 +32,7 @@ Updated by Christian Limpach (chris@nice.ch)
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>
#include "lisp.h"
...
...
@@ -4474,13 +4475,12 @@ - (void)keyDown: (NSEvent *)theEvent
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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment