diff options
| author | Paul Eggert | 2013-07-18 14:16:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-18 14:16:33 -0700 |
| commit | 4d19d194070f508faeddcbbd4c31fd4ce720825a (patch) | |
| tree | 1b0c3acd08afdce81461ed36f45fc2d67305bf86 | |
| parent | 945c5bb194ecdc4f3be4223dcfcd88077391975b (diff) | |
| download | emacs-4d19d194070f508faeddcbbd4c31fd4ce720825a.tar.gz emacs-4d19d194070f508faeddcbbd4c31fd4ce720825a.zip | |
* keyboard.c: Try to fix typos in previous change.
(DISPLAY_LIST_INFO): New macro.
(kbd_buffer_get_event): Do not access members that are not present
in X11. Revert nadvertent change of "!=" to "=".
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/keyboard.c | 15 |
2 files changed, 18 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index de80ac168bd..164445432ec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-07-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * keyboard.c: Try to fix typos in previous change. | ||
| 4 | (DISPLAY_LIST_INFO): New macro. | ||
| 5 | (kbd_buffer_get_event): Do not access members that are not present | ||
| 6 | in X11. Revert nadvertent change of "!=" to "=". | ||
| 7 | |||
| 1 | 2013-07-18 Juanma Barranquero <lekktu@gmail.com> | 8 | 2013-07-18 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 9 | ||
| 3 | * keyboard.c (kbd_buffer_get_event): | 10 | * keyboard.c (kbd_buffer_get_event): |
diff --git a/src/keyboard.c b/src/keyboard.c index f025d6c5dfa..fce466eca2f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -4066,7 +4066,12 @@ kbd_buffer_get_event (KBOARD **kbp, | |||
| 4066 | } | 4066 | } |
| 4067 | else if (event->kind == FOCUS_OUT_EVENT) | 4067 | else if (event->kind == FOCUS_OUT_EVENT) |
| 4068 | { | 4068 | { |
| 4069 | #if defined (HAVE_NS) || defined (HAVE_X11) || defined (WINDOWSNT) | 4069 | #if defined HAVE_X11 || defined HAVE_NS |
| 4070 | # define DISPLAY_LIST_INFO(di) (di) | ||
| 4071 | #elif defined WINDOWSNT | ||
| 4072 | # define DISPLAY_LIST_INFO(di) FRAME_X_DISPLAY_INFO (di) | ||
| 4073 | #endif | ||
| 4074 | #ifdef DISPLAY_LIST_INFO | ||
| 4070 | 4075 | ||
| 4071 | #ifdef HAVE_NS | 4076 | #ifdef HAVE_NS |
| 4072 | struct ns_display_info *di; | 4077 | struct ns_display_info *di; |
| @@ -4076,11 +4081,13 @@ kbd_buffer_get_event (KBOARD **kbp, | |||
| 4076 | Lisp_Object frame = event->frame_or_window; | 4081 | Lisp_Object frame = event->frame_or_window; |
| 4077 | bool focused = false; | 4082 | bool focused = false; |
| 4078 | 4083 | ||
| 4079 | for (di = x_display_list; di && ! focused; di = FRAME_X_DISPLAY_INFO (di)->next) | 4084 | for (di = x_display_list; |
| 4080 | focused = FRAME_X_DISPLAY_INFO (di)->x_highlight_frame = 0; | 4085 | di && ! focused; |
| 4086 | di = DISPLAY_LIST_INFO (di)->next) | ||
| 4087 | focused = DISPLAY_LIST_INFO (di)->x_highlight_frame != 0; | ||
| 4081 | 4088 | ||
| 4082 | if (! focused) obj = make_lispy_focus_out (frame); | 4089 | if (! focused) obj = make_lispy_focus_out (frame); |
| 4083 | #endif /* HAVE_NS || HAVE_X11 || WINDOWSNT */ | 4090 | #endif /* DISPLAY_LIST_INFO */ |
| 4084 | 4091 | ||
| 4085 | kbd_fetch_ptr = event + 1; | 4092 | kbd_fetch_ptr = event + 1; |
| 4086 | } | 4093 | } |