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

Fix event handling on Windows #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Fix event handling on Windows #3

wants to merge 10 commits into from

Conversation

asig
Copy link

@asig asig commented Jun 26, 2013

Hey,

Windows event handling seems to be seriously broken. Using a separate goroutine doesn't work, because the main UI thread needs to run the message pump. This change fixes this. If compiled under windows, it does not start the pollEvents() goroutine, and it does not expose the Events channel. Instead, it makes PollEvents() public.

I don't like that it still creates the Events channel automatically on non-Windows OSes, but it the safest option.

Cheers,

Andreas

@neagix
Copy link
Owner

neagix commented Aug 6, 2013

are some of these commits already merged?

@asig
Copy link
Author

asig commented Aug 7, 2013

ah, crap, only the first 2 commits (e63b3aa and f454386) are safe to merged. apparently, i forgot to create a branch... still not used to git :-(

@neagix
Copy link
Owner

neagix commented Aug 8, 2013

no worries, I am not an expert as well :)

I will review those 2, thanks!

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 this pull request may close these issues.

2 participants