If you find out what GLFW does I'd like to know - I didn't see anything out of the ordinary in their implementation (but they also haven't gotten to the wacky stuff like surface suspension yet, so who knows).