goxjs / glfw

Go cross-platform glfw library for creating an OpenGL context and receiving events.
MIT License
82 stars 26 forks source link

Implement focus callback for browser using the Page Visibility API. #13

Closed meyerzinn closed 6 years ago

meyerzinn commented 6 years ago

Sorry for any misc whitespace changes, that's just gofmt at work.

meyerzinn commented 6 years ago

This resolves #12.

meyerzinn commented 6 years ago

I'm going to go ahead and close this because there is a different implementation described in #12 that fits the GLFW paradigm of "selected." I will make a PR with the alternate implementation shortly.