i don't think it's something in glfw since this part of the code is native calls to windows api. not sure what can be going on though. perhaps we can look at freeglut to see how they do it?