瀏覽代碼

Cocoa: Initial implementation of glfwDragWindow

Camilla Löwy 8 年之前
父節點
當前提交
cad8f2f7d5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/cocoa_window.m

+ 1 - 0
src/cocoa_window.m

@@ -1300,6 +1300,7 @@ void _glfwPlatformFocusWindow(_GLFWwindow* window)
 
 void _glfwPlatformDragWindow(_GLFWwindow* window)
 {
+    [window->ns.object performWindowDragWithEvent:[NSApp currentEvent]];
 }
 
 void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,