Move mouse passthrough before window showing

Related to #1568.
master
Camilla Löwy ago%!(EXTRA string=5 years)
parent 1095a43708
commit dfeacee000
  1. 6
      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;
}

Loading…
Cancel
Save