summaryrefslogtreecommitdiff
path: root/src/OpenDis.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2022-11-11 18:55:23 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 09:20:00 -0800
commita9e845809bcaae22496bc8aa3ca252b410d5f39b (patch)
tree1a24b0966c6770be747fa603b4b01d6281d99aa4 /src/OpenDis.c
parentbccd787a565d3a88673bfc06574c1939f98d8d72 (diff)
downloadxorg-lib-libX11-a9e845809bcaae22496bc8aa3ca252b410d5f39b.tar.gz
Fix 797755 Allow X*IfEvent() to reenter libX11
- the activation logic is reversed - there is also _XInternalLockDisplay() that needs protection - I've found cases (in fvwm2) where the callback calls XCheckIfEvent() recursively. So the flag needs to be a counter. Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/OpenDis.c')
-rw-r--r--src/OpenDis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OpenDis.c b/src/OpenDis.c
index e1bc2a30..17dc4cb2 100644
--- a/src/OpenDis.c
+++ b/src/OpenDis.c
@@ -189,7 +189,7 @@ XOpenDisplay (
dpy->xcmisc_opcode = 0;
dpy->xkb_info = NULL;
dpy->exit_handler_data = NULL;
- dpy->in_ifevent = False;
+ dpy->in_ifevent = 0;
/*
* Setup other information in this display structure.