| 116 | |
| 117 | |
| 118 | static void windowPosCallback(GLFWwindow* win, int x, int y) { |
| 119 | if (glfwGetWindowAttrib(win, GLFW_MAXIMIZED)) |
| 120 | return; |
| 121 | if (glfwGetWindowAttrib(win, GLFW_ICONIFIED)) |
| 122 | return; |
| 123 | if (glfwGetWindowMonitor(win)) |
| 124 | return; |
| 125 | settings::windowPos = math::Vec(x, y); |
| 126 | // DEBUG("windowPosCallback %d %d", x, y); |
| 127 | } |
| 128 | |
| 129 | |
| 130 | static void windowSizeCallback(GLFWwindow* win, int width, int height) { |