Skip to content

Commit 2ae6b79

Browse files
authored
Auto merge of #455 - xiaopengli89:fix-window-number-at-point, r=jrmuizel
fix: windowNumberAtPoint_belowWindowWithWindowNumber_ [windowNumber(at:belowWindowWithWindowNumber:)](https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumber) is a type method.
2 parents c5590b2 + 147a432 commit 2ae6b79

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
@@ -1049,7 +1049,7 @@ pub trait NSWindow: Sized {
10491049
unsafe fn setIgnoresMouseEvents_(self, ignoreMouseEvents: BOOL);
10501050
unsafe fn mouseLocationOutsideOfEventStream(self) -> NSPoint;
10511051
unsafe fn setAcceptsMouseMovedEvents_(self, acceptMouseMovedEvents: BOOL);
1052-
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(self,
1052+
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(_: Self,
10531053
point: NSPoint,
10541054
windowNumber: NSInteger) -> NSInteger;
10551055

@@ -1618,10 +1618,10 @@ impl NSWindow for id {
16181618
msg_send![self, setAcceptsMouseMovedEvents:acceptMouseMovedEvents]
16191619
}
16201620

1621-
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(self,
1621+
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(_: Self,
16221622
point: NSPoint,
16231623
windowNumber: NSInteger) -> NSInteger {
1624-
msg_send![self, windowNumberAtPoint:point belowWindowWithWindowNumber:windowNumber]
1624+
msg_send![class!(NSWindow), windowNumberAtPoint:point belowWindowWithWindowNumber:windowNumber]
16251625
}
16261626

16271627
// Converting Coordinates

0 commit comments

Comments
 (0)