thanks for the explanation. Then there is a mismatch between the declaration and the function definition.

Check for gl_handle_xevents().

I'm letting you the opportunity to fix the mismatch. If not, your pull request is acceptable and I'll look into this later. Just let me know what you decide.

thank you,