diff --git a/glfw/window.c b/glfw/window.c index 78378d914..7e8f74468 100644 --- a/glfw/window.c +++ b/glfw/window.c @@ -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; }