diff --git a/glfw/window.c b/glfw/window.c index 712d65844..78378d914 100644 --- a/glfw/window.c +++ b/glfw/window.c @@ -291,7 +291,8 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, } } - _glfwPlatformSetWindowMousePassthrough(window, wndconfig.mousePassthrough); + if (wndconfig.mousePassthrough) + _glfwPlatformSetWindowMousePassthrough(window, true); return (GLFWwindow*) window; }