mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +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);
|
updateCursorImage(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)acceptsFirstMouse:(NSEvent *)event
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
- (void)mouseDown:(NSEvent *)event
|
- (void)mouseDown:(NSEvent *)event
|
||||||
{
|
{
|
||||||
_glfwInputMouseClick(window,
|
_glfwInputMouseClick(window,
|
||||||
|
Loading…
Reference in New Issue
Block a user