]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the fix for bug #14901.
authorEli Zaretskii <eliz@gnu.org>
Fri, 19 Jul 2013 10:55:36 +0000 (13:55 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 19 Jul 2013 10:55:36 +0000 (13:55 +0300)
 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.

src/ChangeLog
src/keyboard.c

index b0c486ab8b22a479f254c83238ba03ae5eb2c6e5..fffb0e81a0a29192f7265a8a26672baf232251b4 100644 (file)
@@ -1,3 +1,10 @@
+2013-07-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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  <eggert@cs.ucla.edu>
 
        * sysdep.c [GNU_LINUX]: Fix fd and memory leaks and similar issues.
index fce466eca2fa5a4283a2b725083570ede7153744..830f70bc1f54536d40f4c5b575416d752a2089fb 100644 (file)
@@ -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;
         }