aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2013-07-19 13:55:36 +0300
committerEli Zaretskii <[email protected]>2013-07-19 13:55:36 +0300
commit621dd9ac0cf31453dc6e40436eae2aebd27d1517 (patch)
treef019f8bcc2b347307fa60c82d31349ea657aae73 /src
parentac446ed806624ee66ccec019e631b9de58b14537 (diff)
Fix the fix for bug #14901.
src/keyboard.c (kbd_buffer_get_event): Use Display_Info instead of unportable 'struct x_display_info'. (DISPLAY_LIST_INFO): Delete macro: not needed, since Display_Info is a portable type.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/keyboard.c25
2 files changed, 15 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b0c486ab8b..fffb0e81a0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
+2013-07-19 Eli Zaretskii <[email protected]>
+
+ * keyboard.c (kbd_buffer_get_event): Use Display_Info instead of
+ unportable 'struct x_display_info'.
+ (DISPLAY_LIST_INFO): Delete macro: not needed, since Display_Info
+ is a portable type.
+
2013-07-19 Paul Eggert <[email protected]>
* sysdep.c [GNU_LINUX]: Fix fd and memory leaks and similar issues.
diff --git a/src/keyboard.c b/src/keyboard.c
index fce466eca2..830f70bc1f 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4066,28 +4066,19 @@ kbd_buffer_get_event (KBOARD **kbp,
}
else if (event->kind == FOCUS_OUT_EVENT)
{
-#if defined HAVE_X11 || defined HAVE_NS
-# define DISPLAY_LIST_INFO(di) (di)
-#elif defined WINDOWSNT
-# define DISPLAY_LIST_INFO(di) FRAME_X_DISPLAY_INFO (di)
-#endif
-#ifdef DISPLAY_LIST_INFO
+#ifdef HAVE_WINDOW_SYSTEM
-#ifdef HAVE_NS
- struct ns_display_info *di;
-#else
- struct x_display_info *di;
-#endif
+ Display_Info *di;
Lisp_Object frame = event->frame_or_window;
bool focused = false;
- for (di = x_display_list;
- di && ! focused;
- di = DISPLAY_LIST_INFO (di)->next)
- focused = DISPLAY_LIST_INFO (di)->x_highlight_frame != 0;
+ for (di = x_display_list; di && ! focused; di = di->next)
+ focused = di->x_highlight_frame != 0;
+
+ if (!focused)
+ obj = make_lispy_focus_out (frame);
- if (! focused) obj = make_lispy_focus_out (frame);
-#endif /* DISPLAY_LIST_INFO */
+#endif /* HAVE_WINDOW_SYSTEM */
kbd_fetch_ptr = event + 1;
}