Fixed GLFW context and input handling.