From 7ed3ec51e98261a13426daa94ba56eb9a2febb37 Mon Sep 17 00:00:00 2001
From: kkostiuk <kateryna.kostiuk@savoirfairelinux.com>
Date: Tue, 22 Mar 2022 15:58:53 -0400
Subject: [PATCH] macOS: system tray behaviour

Do not open/close Jami on click on the Jami system tray icon.
Click on Jami system tray icon trigger context menu with options
to show Jami and to close Jami.

Change-Id: I2230cc958d23b6aff245a6eca6e7d0776f6a1687
---
 src/mainapplication.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mainapplication.cpp b/src/mainapplication.cpp
index 20e7e085d..104671cea 100644
--- a/src/mainapplication.cpp
+++ b/src/mainapplication.cpp
@@ -374,7 +374,7 @@ MainApplication::initSystray()
                 if (reason != QSystemTrayIcon::ActivationReason::Context) {
 #ifdef Q_OS_WINDOWS
                     restoreApp();
-#else
+#elif !defined(Q_OS_MACOS)
                     QWindow* window = focusWindow();
                     if (window)
                         window->close();
-- 
GitLab