Added glfw focus management.