diff --git a/src/SFML/Window/OSX/SFOpenGLView.mm b/src/SFML/Window/OSX/SFOpenGLView.mm index 38cfd45d..9631ac44 100644 --- a/src/SFML/Window/OSX/SFOpenGLView.mm +++ b/src/SFML/Window/OSX/SFOpenGLView.mm @@ -187,7 +187,7 @@ NSPoint loc = [self convertPoint:[theEvent locationInWindow] fromView:nil]; // Don't forget to change to SFML coord system. - float h = [[theEvent window] frame].size.height; + float h = [self frame].size.height; myRequester->MouseMovedAt(loc.x, h - loc.y); }