Use acceptsFirstMouse on MacOS so mouse button callback will trigger when the clicked window is not focused.

This commit is contained in:
Andrew Belt 2018-11-24 09:38:07 -05:00
parent 9bfdd218fb
commit 8445eb7c1c

View File

@ -497,6 +497,11 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
updateCursorImage(window);
}
- (BOOL)acceptsFirstMouse:(NSEvent *)event
{
return YES;
}
- (void)mouseDown:(NSEvent *)event
{
_glfwInputMouseClick(window,