From 296505fc5848fa064716714286cf15422a72bdfc Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 4 Apr 2018 16:14:32 +0200 Subject: Hide the QGuiApplication on mac os again. --- synchronizer/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'synchronizer') diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp index f4bac73..169b83b 100644 --- a/synchronizer/main.cpp +++ b/synchronizer/main.cpp @@ -226,6 +226,9 @@ int main(int argc, char *argv[]) qInstallMessageHandler(qtMessageHandler); + //Necessary to hide this QGuiApplication from the dock and application switcher on mac os. + qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "1"); + QGuiApplication app(argc, argv); app.setQuitLockEnabled(false); -- cgit v1.2.3