浏览代码

Move mouse passthrough before window showing

Related to #1568.
Camilla Löwy 5 年之前
父节点
当前提交
dfeacee000
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/window.c

+ 3 - 3
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 (window->monitor)
     {
     {
         if (wndconfig.centerCursor)
         if (wndconfig.centerCursor)
@@ -244,9 +247,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
         }
         }
     }
     }
 
 
-    if (wndconfig.mousePassthrough)
-        _glfwPlatformSetWindowMousePassthrough(window, GLFW_TRUE);
-
     return (GLFWwindow*) window;
     return (GLFWwindow*) window;
 }
 }