From 2dab4393b08eddb7dba3c876756fea3bd6235cfb Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Mon, 28 Oct 2019 22:19:00 +0100 Subject: 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. --- intern/ghost/intern/GHOST_WindowViewCocoa.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intern') 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 { -- cgit v1.2.3