diff options
| author | David Reitter | 2009-06-26 18:37:41 +0000 |
|---|---|---|
| committer | David Reitter | 2009-06-26 18:37:41 +0000 |
| commit | 25c5550f48ae371dbbe4e7cd7048efcefa030670 (patch) | |
| tree | 3124a00d3a96314e98990201ef86cd88f8667c9f | |
| parent | 6ada5ad143d9a491e395303123c4a34b324012e5 (diff) | |
| download | emacs-25c5550f48ae371dbbe4e7cd7048efcefa030670.tar.gz emacs-25c5550f48ae371dbbe4e7cd7048efcefa030670.zip | |
nsterm.m (keydown): avoid infinite loop
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/nsterm.m | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c1511e9c243..bf0dcfdfd18 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-06-26 David Reitter <david.reitter@gmail.com> | ||
| 2 | |||
| 3 | * nsterm.m (keydown): avoid infinite loop | ||
| 4 | |||
| 1 | 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change) | 5 | 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change) |
| 2 | 6 | ||
| 3 | * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as | 7 | * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as |
diff --git a/src/nsterm.m b/src/nsterm.m index 0089dc3a415..75567de0e57 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -4468,7 +4468,9 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 4468 | return; | 4468 | return; |
| 4469 | 4469 | ||
| 4470 | if (![[self window] isKeyWindow] | 4470 | if (![[self window] isKeyWindow] |
| 4471 | && [[theEvent window] isKindOfClass: [EmacsWindow class]]) | 4471 | && [[theEvent window] isKindOfClass: [EmacsWindow class]] |
| 4472 | /* we must avoid an infinite loop here. */ | ||
| 4473 | && (EmacsView *)[[theEvent window] delegate] != self) | ||
| 4472 | { | 4474 | { |
| 4473 | /* XXX: There is an occasional condition in which, when Emacs display | 4475 | /* XXX: There is an occasional condition in which, when Emacs display |
| 4474 | updates a different frame from the current one, and temporarily | 4476 | updates a different frame from the current one, and temporarily |