From 147a432fa91b48726d7eebded9e65e58e1f077ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B0=8F=E9=B9=8F?= Date: Tue, 13 Apr 2021 18:25:42 +0800 Subject: [PATCH] fix: windowNumberAtPoint_belowWindowWithWindowNumber_ is class method --- cocoa/src/appkit.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocoa/src/appkit.rs b/cocoa/src/appkit.rs index c30b1f5..12e8e07 100644 --- a/cocoa/src/appkit.rs +++ b/cocoa/src/appkit.rs @@ -1044,7 +1044,7 @@ pub trait NSWindow: Sized { unsafe fn setIgnoresMouseEvents_(self, ignoreMouseEvents: BOOL); unsafe fn mouseLocationOutsideOfEventStream(self) -> NSPoint; unsafe fn setAcceptsMouseMovedEvents_(self, acceptMouseMovedEvents: BOOL); - unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(self, + unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(_: Self, point: NSPoint, windowNumber: NSInteger) -> NSInteger; @@ -1613,10 +1613,10 @@ impl NSWindow for id { msg_send![self, setAcceptsMouseMovedEvents:acceptMouseMovedEvents] } - unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(self, + unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(_: Self, point: NSPoint, windowNumber: NSInteger) -> NSInteger { - msg_send![self, windowNumberAtPoint:point belowWindowWithWindowNumber:windowNumber] + msg_send![class!(NSWindow), windowNumberAtPoint:point belowWindowWithWindowNumber:windowNumber] } // Converting Coordinates