Why does the while loop not work without the XPeekEvent call?
Title says it all.
The code works with the XPeekEvent
right before the while XCheckTypedEvent
but without that the conditional evaluates to false and I have no idea why that might be.