maybe i missed a point, is it possible that dpy->in_ifevent will underflow ?
re, wh ________________________________________ Von: xorg-devel <xorg-devel-boun...@lists.x.org> im Auftrag von Ulrich Sibiller <ul...@gmx.de> Gesendet: Mittwoch, 30. November 2022 23:47 An: xorg-devel@lists.x.org Betreff: PATCH libX11 2/2] ChkIfEv.c: fix wrong handling of dpy->in_ifevent >From 9d6bb3d179427d832d811e61fb6e4ebb9d004283 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller <ul...@gmx.de> Date: Wed, 30 Nov 2022 22:19:15 +0100 Subject: [PATCH libX11 2/2] ChkIfEv.c: fix wrong handling of dpy->in_ifevent Is no longer a bool but a counter. Signed-off-by: Ulrich Sibiller <ul...@gmx.de> --- src/ChkIfEv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChkIfEv.c b/src/ChkIfEv.c index eba36941..b32c2d3e 100644 --- a/src/ChkIfEv.c +++ b/src/ChkIfEv.c @@ -61,7 +61,7 @@ Bool XCheckIfEvent ( *event = qelt->event; _XDeq(dpy, prev, qelt); _XStoreEventCookie(dpy, event); - dpy->in_ifevent = False; + dpy->in_ifevent--; UnlockDisplay(dpy); return True; } -- 2.20.1