Просмотр исходного кода

Remove no-op call at window creation

Related to #1568.
Camilla Löwy 5 лет назад
Родитель
Сommit
1095a43708
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/window.c

+ 2 - 1
src/window.c

@@ -244,7 +244,8 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
         }
     }
 
-    _glfwPlatformSetWindowMousePassthrough(window, wndconfig.mousePassthrough);
+    if (wndconfig.mousePassthrough)
+        _glfwPlatformSetWindowMousePassthrough(window, GLFW_TRUE);
 
     return (GLFWwindow*) window;
 }