mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +00:00
Use acceptsFirstMouse on MacOS so mouse button callback will trigger when the clicked window is not focused.
This commit is contained in:
parent
9bfdd218fb
commit
8445eb7c1c
@ -497,6 +497,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