diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 15 |
1 files changed, 11 insertions, 4 deletions
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 | } |