Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiting for event queue to be processed before returning from the methods #347

Closed
canonic-epicure opened this issue Dec 6, 2017 · 1 comment · Fixed by #363
Closed

Comments

@canonic-epicure
Copy link
Contributor

In my tests, it seems that keyboard typing methods returns immediately, w/o waiting the events queue to be processed by the system. That is - key type listeners are not activated yet, but the method already returns.

I've fixed this by adding arbitrary 50ms delay, but this is basically a race condition.

Any chance the methods can wait for events queue to be emptied?

@canonic-epicure
Copy link
Contributor Author

Relevant info for X11: https://stackoverflow.com/questions/31088029/flushing-events-to-x11

Anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant