From dfeacee00010fef20f8b15853302d352c1bfe0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 8 Jul 2020 00:28:35 +0200 Subject: [PATCH] Move mouse passthrough before window showing Related to #1568. --- src/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.c b/src/window.c index 68e6acbe..c6eb8a03 100644 --- a/src/window.c +++ b/src/window.c @@ -229,6 +229,9 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, } } + if (wndconfig.mousePassthrough) + _glfwPlatformSetWindowMousePassthrough(window, GLFW_TRUE); + if (window->monitor) { if (wndconfig.centerCursor) @@ -244,9 +247,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, } } - if (wndconfig.mousePassthrough) - _glfwPlatformSetWindowMousePassthrough(window, GLFW_TRUE); - return (GLFWwindow*) window; }