2
0
Эх сурвалжийг харах

Remove no-op call at window creation

Related to #1568.
Camilla Löwy 5 жил өмнө
parent
commit
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;
 }