+2009-08-15 Michael Albinus <michael.albinus@gmx.de>
+
+ * dbusbind.c (xd_get_dispatch_status, xd_pending_messages): New
+ functions.
+
+ * lisp.h (xd_pending_messages): Declare.
+
+ * keyboard.c (readable_events): Call xd_pending_messages.
+
2009-08-15 Chong Yidong <cyd@stupidchicken.com>
* xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
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);
int expected;
{
#ifdef HAVE_DBUS
- /* Check whether a D-Bus message has arrived. */
+ /* Read D-Bus messages. */
xd_read_queued_messages ();
#endif /* HAVE_DBUS */
{
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++)