Closed galou closed 3 years ago
I merged your earlier changes, and fixed the issues myself. Thanks for the contribution, closing this pull request.
OK, it's the first time I program for X11 and I must have missed some subtleties. I though that the XTEST extension is a library and thus the test must be done only once (hence the static variables). Anyway, I'm glad that you used part of my code. Thanks for integrating this change!
Using XTestFakeKeyEvent rather than XSendEvent makes Shift, Control and Alt working. The Escape key was working also with XSendEvent. Other keys were not tested.