Cocoa: Accept focusing mouse click as input

This makes the behavior on macOS consistent with other platforms.

Fixes #1209.
Closes #1386.
This commit is contained in:
Andrew Belt 2018-11-24 09:38:07 -05:00 committed by Camilla Löwy
parent 17a15a20f2
commit cc621765e5

View File

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