diff options
Diffstat (limited to 'src/ChkIfEv.c')
-rw-r--r-- | src/ChkIfEv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChkIfEv.c b/src/ChkIfEv.c index 327b5eaf..1bbcba5b 100644 --- a/src/ChkIfEv.c +++ b/src/ChkIfEv.c @@ -49,8 +49,8 @@ Bool XCheckIfEvent ( unsigned long qe_serial = 0; int n; /* time through count */ + dpy->in_ifevent++; LockDisplay(dpy); - dpy->in_ifevent = True; prev = NULL; for (n = 3; --n >= 0;) { for (qelt = prev ? prev->next : dpy->head; @@ -80,7 +80,7 @@ Bool XCheckIfEvent ( /* another thread has snatched this event */ prev = NULL; } - dpy->in_ifevent = False; + dpy->in_ifevent--; UnlockDisplay(dpy); return False; } |