Fix XPutBackEvent() to support GenericEvents
With commit d6d6cba9 generic events could no longer be put back, since _XEventToWire would always return _XUnknownNativeEvent for them.
Fixes #174 (closed).
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.
With commit d6d6cba9 generic events could no longer be put back, since _XEventToWire would always return _XUnknownNativeEvent for them.
Fixes #174 (closed).