|
|
|
@ -47,18 +47,13 @@ static int Max(int a, int b) |
|
|
|
|
void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused) |
|
|
|
|
{ |
|
|
|
|
if (focused) |
|
|
|
|
{ |
|
|
|
|
if (_glfw.focusedWindow != window) |
|
|
|
|
{ |
|
|
|
|
_glfw.focusedWindow = window; |
|
|
|
|
|
|
|
|
|
if (window->callbacks.focus) |
|
|
|
|
window->callbacks.focus((GLFWwindow*) window, focused); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
if (_glfw.focusedWindow == window) |
|
|
|
|
{ |
|
|
|
|
int i; |
|
|
|
|
|
|
|
|
@ -81,7 +76,6 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused) |
|
|
|
|
_glfwInputMouseClick(window, i, GLFW_RELEASE, 0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void _glfwInputWindowPos(_GLFWwindow* window, int x, int y) |
|
|
|
|