Fix 797755 Allow X*IfEvent() to reenter libX11
- the activation logic is reverted
- I've found cases (in fvwm2) where the callback calls XCheckIfEvent() recursively. So the flag needs to be a counter.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.