aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-04-22 01:53:03 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-04-22 01:53:03 -0400
commitbeb566f11e97895339f687aed8a6c9a4a80ab4ab (patch)
tree584eab67aab2d8630cd0292aa30c36c59f9a0590 /src/qt
parent02ae14fd6bcd705ed838fba627775e4d8d52b5f3 (diff)
parent9fc617956dd4399891c21ae5adbd46499b08f62b (diff)
downloadmonzero-gui-beb566f11e97895339f687aed8a6c9a4a80ab4ab.tar.gz
monzero-gui-beb566f11e97895339f687aed8a6c9a4a80ab4ab.tar.xz
monzero-gui-beb566f11e97895339f687aed8a6c9a4a80ab4ab.zip
Merge pull request #2242
9fc6179 macOS: add basic menubar support (selsta)
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/macoshelper.h1
-rw-r--r--src/qt/macoshelper.mm8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/qt/macoshelper.h b/src/qt/macoshelper.h
index c8e86b05..d3bd27b9 100644
--- a/src/qt/macoshelper.h
+++ b/src/qt/macoshelper.h
@@ -40,6 +40,7 @@ public:
static bool openFolderAndSelectItem(const QUrl &path);
static QPixmap screenshot();
static QString bundlePath();
+ static void disableWindowTabbing();
};
#endif //MACOSHELPER_H
diff --git a/src/qt/macoshelper.mm b/src/qt/macoshelper.mm
index 1d3b812a..35e42a32 100644
--- a/src/qt/macoshelper.mm
+++ b/src/qt/macoshelper.mm
@@ -41,6 +41,14 @@
#include "ScopeGuard.h"
+void MacOSHelper::disableWindowTabbing()
+{
+#ifdef __MAC_10_12
+ if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)])
+ [NSWindow setAllowsAutomaticWindowTabbing: NO];
+#endif
+}
+
bool MacOSHelper::isCapsLock()
{
#ifdef __MAC_10_12