summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-01-30 14:06:58 +0100
committerJonathan Bauer2020-01-30 14:06:58 +0100
commitfd569e636f6713a0c5b0c8d4d6e8e98cd5395d56 (patch)
treedda8731cd66cfb65620b31280f66c0464220462f
parentWürg around reset idle time through ungrab hook (diff)
downloadxscreensaver-fd569e636f6713a0c5b0c8d4d6e8e98cd5395d56.tar.gz
xscreensaver-fd569e636f6713a0c5b0c8d4d6e8e98cd5395d56.tar.xz
xscreensaver-fd569e636f6713a0c5b0c8d4d6e8e98cd5395d56.zip
driver/timers.c: fix flush_events()v26
-rw-r--r--driver/timers.c2
1 files changed, 1 insertions, 1 deletions
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);
}