From 7410346c5cb1b5774a43b286d260973f04aa584f Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 16 Mar 2017 15:23:59 +0100 Subject: [PATCH] Cocoa: Allow undecorated windows to become main --- src/cocoa_window.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 92635035..d2aab85f 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -777,6 +777,11 @@ static const NSRange kEmptyRange = { NSNotFound, 0 }; return YES; } +- (BOOL)canBecomeMainWindow +{ + return YES; +} + @end