Mercurial > emacs
changeset 104286:19668aab4711
* keyboard.c (readable_events): Call xd_pending_messages.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Sat, 15 Aug 2009 18:30:54 +0000 |
parents | 4eb010135586 |
children | f3b6df5e1576 |
files | src/keyboard.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Sat Aug 15 18:27:58 2009 +0000 +++ b/src/keyboard.c Sat Aug 15 18:30:54 2009 +0000 @@ -3660,6 +3660,12 @@ readable_events (flags) int flags; { +#ifdef HAVE_DBUS + /* Check whether a D-Bus message has arrived. */ + if (xd_pending_messages () > 0) + return 1; +#endif /* HAVE_DBUS */ + if (flags & READABLE_EVENTS_DO_TIMERS_NOW) timer_check (1); @@ -6982,7 +6988,7 @@ int expected; { #ifdef HAVE_DBUS - /* Check whether a D-Bus message has arrived. */ + /* Read D-Bus messages. */ xd_read_queued_messages (); #endif /* HAVE_DBUS */ @@ -7338,7 +7344,7 @@ { struct coding_system *coding = TERMINAL_KEYBOARD_CODING (terminal); int from; - + /* Decode the key sequence except for those with meta modifiers. */ for (i = from = 0; ; i++)