Bug fix: glfw's framebuffer might be lately changed after consuming some events