From 1095a43708d98190afdc5dfbfc40086c333f7f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 7 Jul 2020 18:39:07 +0200 Subject: [PATCH] Remove no-op call at window creation Related to #1568. --- src/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }