From fd569e636f6713a0c5b0c8d4d6e8e98cd5395d56 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 30 Jan 2020 14:06:58 +0100 Subject: driver/timers.c: fix flush_events() --- driver/timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/timers.c b/driver/timers.c index 591b568..9c18a8e 100644 --- a/driver/timers.c +++ b/driver/timers.c @@ -695,7 +695,7 @@ flush_events (saver_info *si) int i; XEvent xe; for (i = 0; i < 10; ++i) { - while (XtAppPending (si->app) != 0) { + while (XtAppPending (si->app) & XtIMXEvent) { XtAppNextEvent (si->app, &xe); dispatch_event (si, &xe); } -- cgit v1.2.3-55-g7522