GLFW: Move mouse passthrough before window showing

From upstream: dfeacee000.
This commit is contained in:
Luflosi 2020-07-16 23:58:24 +02:00
parent 44775e4644
commit dd54db47a9
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

6
glfw/window.c vendored
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;
}