GLFW: Move mouse passthrough before window showing

From upstream: https://github.com/glfw/glfw/commit/dfeacee00010fef20f8b15853302d352c1bfe0fc.
This commit is contained in:
Luflosi
2020-07-17 00:07:36 +02:00
parent 44775e4644
commit dd54db47a9
+3 -3
View File
@@ -274,6 +274,9 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
}
}
if (wndconfig.mousePassthrough)
_glfwPlatformSetWindowMousePassthrough(window, true);
if (window->monitor)
{
if (wndconfig.centerCursor)
@@ -291,9 +294,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
}
}
if (wndconfig.mousePassthrough)
_glfwPlatformSetWindowMousePassthrough(window, true);
return (GLFWwindow*) window;
}