diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2022-11-11 18:55:23 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-19 09:20:00 -0800 |
commit | a9e845809bcaae22496bc8aa3ca252b410d5f39b (patch) | |
tree | 1a24b0966c6770be747fa603b4b01d6281d99aa4 /include | |
parent | bccd787a565d3a88673bfc06574c1939f98d8d72 (diff) |
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 'include')
-rw-r--r-- | include/X11/Xlibint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/X11/Xlibint.h b/include/X11/Xlibint.h index b4275ebd..e20c4833 100644 --- a/include/X11/Xlibint.h +++ b/include/X11/Xlibint.h @@ -207,7 +207,7 @@ struct _XDisplay XIOErrorExitHandler exit_handler; void *exit_handler_data; - Bool in_ifevent; + CARD32 in_ifevent; }; #define XAllocIDs(dpy,ids,n) (*(dpy)->idlist_alloc)(dpy,ids,n) |