8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a40221 commit 30746c5Copy full SHA for 30746c5
src/_macosx.m
@@ -1804,8 +1804,16 @@ - (void)mouseEntered:(NSEvent *)event
1804
NSWindow* window = [self window];
1805
if ([window isKeyWindow]==false) return;
1806
1807
+ int x, y;
1808
+ NSPoint location = [event locationInWindow];
1809
+ location = [self convertPoint: location fromView: nil];
1810
+ x = location.x * device_scale;
1811
+ y = location.y * device_scale;
1812
+
1813
gstate = PyGILState_Ensure();
- result = PyObject_CallMethod(canvas, "enter_notify_event", "");
1814
+ result = PyObject_CallMethod(canvas, "enter_notify_event", "O(ii)",
1815
+ Py_None, x, y);
1816
1817
if(result)
1818
Py_DECREF(result);
1819
else
0 commit comments