aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/touchbar/touchbar_appdelegate_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/touchbar/touchbar_appdelegate_mac.mm')
-rw-r--r--src/libs/utils/touchbar/touchbar_appdelegate_mac.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/utils/touchbar/touchbar_appdelegate_mac.mm b/src/libs/utils/touchbar/touchbar_appdelegate_mac.mm
index e921695fdc..128679dfb7 100644
--- a/src/libs/utils/touchbar/touchbar_appdelegate_mac.mm
+++ b/src/libs/utils/touchbar/touchbar_appdelegate_mac.mm
@@ -29,6 +29,7 @@
#include <stack>
#import <AppKit/NSTouchBar.h>
+#import <AppKit/NSWindow.h>
Q_GLOBAL_STATIC(Utils::Internal::ApplicationDelegate, staticApplicationDelegate);
@@ -148,4 +149,11 @@ using namespace Utils::Internal;
[anInvocation invokeWithTarget:self.qtDelegate];
}
+// Work around QTBUG-61707
+- (void)applicationWillFinishLaunching:(NSNotification*)notify
+{
+ Q_UNUSED(notify)
+ [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
+ NSWindow.allowsAutomaticWindowTabbing = NO;
+}
@end