diff --git a/src/window.c b/src/window.c index e706c95a..68e6acbe 100644 --- a/src/window.c +++ b/src/window.c @@ -244,7 +244,8 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, } } - _glfwPlatformSetWindowMousePassthrough(window, wndconfig.mousePassthrough); + if (wndconfig.mousePassthrough) + _glfwPlatformSetWindowMousePassthrough(window, GLFW_TRUE); return (GLFWwindow*) window; }