Cocoa: Accept focusing mouse click as input

This makes the behavior on macOS consistent with other platforms.

Fixes #1209.
Closes #1386.
master
Andrew Belt ago%!(EXTRA string=7 years) committed by Camilla Löwy
parent 17a15a20f2
commit cc621765e5
  1. 5
      src/cocoa_window.m

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

Loading…
Cancel
Save