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:
parent
17a15a20f2
commit
cc621765e5
@ -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…
Reference in New Issue
Block a user