Make Emacs respond to NS activation clicks

* src/nsterm.m (acceptsFirstMouse): Opt into receiving mouse events that
activate the window. (bug#76629)
This commit is contained in:
Daniel Colascione 2025-03-01 12:27:08 -05:00
parent 6a2f6056c5
commit 3545988740

View file

@ -6820,6 +6820,13 @@ - (BOOL)acceptsFirstResponder
return YES;
}
/* Tell NS we want to accept clicks that activate the window */
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
{
NSTRACE_MSG ("First mouse event: type=%ld, clickCount=%ld",
[theEvent type], [theEvent clickCount]);
return YES;
}
- (void)resetCursorRects
{
NSRect visible = [self visibleRect];