Skip to content

Commit 147a432

Browse files
committed
fix: windowNumberAtPoint_belowWindowWithWindowNumber_ is class method
1 parent e9a65bb commit 147a432

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cocoa/src/appkit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ pub trait NSWindow: Sized {
10441044
unsafe fn setIgnoresMouseEvents_(self, ignoreMouseEvents: BOOL);
10451045
unsafe fn mouseLocationOutsideOfEventStream(self) -> NSPoint;
10461046
unsafe fn setAcceptsMouseMovedEvents_(self, acceptMouseMovedEvents: BOOL);
1047-
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(self,
1047+
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(_: Self,
10481048
point: NSPoint,
10491049
windowNumber: NSInteger) -> NSInteger;
10501050

@@ -1613,10 +1613,10 @@ impl NSWindow for id {
16131613
msg_send![self, setAcceptsMouseMovedEvents:acceptMouseMovedEvents]
16141614
}
16151615

1616-
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(self,
1616+
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(_: Self,
16171617
point: NSPoint,
16181618
windowNumber: NSInteger) -> NSInteger {
1619-
msg_send![self, windowNumberAtPoint:point belowWindowWithWindowNumber:windowNumber]
1619+
msg_send![class!(NSWindow), windowNumberAtPoint:point belowWindowWithWindowNumber:windowNumber]
16201620
}
16211621

16221622
// Converting Coordinates

0 commit comments

Comments
 (0)