Browse Source

Remove no-op call at window creation

Related to #1568.
Camilla Löwy 5 years ago
parent
commit
1095a43708
1 changed files with 2 additions and 1 deletions
  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;
 }