macOS: Allow NSView subclasses to accept first mouse event.
authorStefan Werner <stefan.werner@tangent-animation.com>
Mon, 28 Oct 2019 21:19:00 +0000 (22:19 +0100)
committerStefan Werner <stefan.werner@tangent-animation.com>
Mon, 28 Oct 2019 21:19:00 +0000 (22:19 +0100)
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.

intern/ghost/intern/GHOST_WindowViewCocoa.h

index 9ed339c9992374bad3892846f9f3668e8a1e3085..cee40924b7313810903958a92f7956f3721f952d 100644 (file)
   return YES;
 }
 
+- (BOOL)acceptsFirstMouse:(NSEvent *)event
+{
+  return YES;
+}
+
 // The trick to prevent Cocoa from complaining (beeping)
 - (void)keyDown:(NSEvent *)event
 {