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:
parent
6a2f6056c5
commit
3545988740
1 changed files with 7 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue