diff options
author | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-10-29 00:19:00 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-10-29 00:19:00 +0300 |
commit | 2dab4393b08eddb7dba3c876756fea3bd6235cfb (patch) | |
tree | 1a83fbe5416178cabbd20438e810d0fd26c7549e /intern/ghost | |
parent | fb3add54d9385b745aaf7c88e99f589c67cdb507 (diff) |
macOS: Allow NSView subclasses to accept first mouse event.
This brings the behavior in line with Windows and Linux. Going between
multiple windows now doesn't use the first click only to change focus
but also allows Blender to process those events.
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowViewCocoa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowViewCocoa.h b/intern/ghost/intern/GHOST_WindowViewCocoa.h index 9ed339c9992..cee40924b73 100644 --- a/intern/ghost/intern/GHOST_WindowViewCocoa.h +++ b/intern/ghost/intern/GHOST_WindowViewCocoa.h @@ -58,6 +58,11 @@ return YES; } +- (BOOL)acceptsFirstMouse:(NSEvent *)event +{ + return YES; +} + // The trick to prevent Cocoa from complaining (beeping) - (void)keyDown:(NSEvent *)event { |