Make first mouse clicks activate and pass through

Allow the first mouse click on an inactive Cocoa OS window to be delivered to kitty instead of only activating the window.

Make the matching kitty-internal behavior consistent by forwarding clicks that switch focus to another kitty window in the currently focused OS window. This lets the same first click both focus the target kitty window and perform the click action, including forwarding to mouse-tracking applications.
This commit is contained in:
zhaolei
2026-07-07 15:35:48 +08:00
parent cc95fccc8d
commit e7a7362d54
3 changed files with 2 additions and 24 deletions

View File

@@ -1016,7 +1016,7 @@ static void _glfwUpdateNotchCover(_GLFWwindow*);
- (BOOL)acceptsFirstMouse:(NSEvent *)event
{
(void)event;
return NO; // changed by Kovid, to follow cocoa platform conventions
return YES; // follow cocoa platform conventions
}
- (void)mouseDown:(NSEvent *)event