Browse Source

Merge pull request #3478 from laytan/fix-send-event-proc-signature

sys/darwin/foundation: fix Application->sendEvent signature
gingerBill 1 year ago
parent
commit
8f4e3b552e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/sys/darwin/Foundation/NSApplication.odin

+ 1 - 1
core/sys/darwin/Foundation/NSApplication.odin

@@ -132,7 +132,7 @@ Application_nextEventMatchingMask :: proc "c" (self: ^Application, mask: EventMa
 
 @(objc_type=Application, objc_name="sendEvent")
 Application_sendEvent :: proc "c" (self: ^Application, event: ^Event) {
-	msgSend(Event, self, "sendEvent:", event)
+	msgSend(nil, self, "sendEvent:", event)
 }
 @(objc_type=Application, objc_name="updateWindows")
 Application_updateWindows :: proc "c" (self: ^Application) {