From dd54db47a945260587d8be3be2099d527eb9f441 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Thu, 16 Jul 2020 23:58:24 +0200 Subject: [PATCH] GLFW: Move mouse passthrough before window showing From upstream: https://github.com/glfw/glfw/commit/dfeacee00010fef20f8b15853302d352c1bfe0fc. --- glfw/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }