Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorStefan Werner <stefan.werner@tangent-animation.com>2019-10-29 00:19:00 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2019-10-29 00:19:00 +0300
commit2dab4393b08eddb7dba3c876756fea3bd6235cfb (patch)
tree1a83fbe5416178cabbd20438e810d0fd26c7549e /intern
parentfb3add54d9385b745aaf7c88e99f589c67cdb507 (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')
-rw-r--r--intern/ghost/intern/GHOST_WindowViewCocoa.h5
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
{