GLFW: Move mouse passthrough before window showing
From upstream: dfeacee000.
This commit is contained in:
parent
44775e4644
commit
dd54db47a9
6
glfw/window.c
vendored
6
glfw/window.c
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user