]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Fix wrong macro clause
authorDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Sat, 4 Jan 2020 11:15:01 +0000 (12:15 +0100)
committerDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Sat, 4 Jan 2020 11:15:01 +0000 (12:15 +0100)
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
src/gui/systray.cpp

index 2a98337279bd988f3c701450ae3ab552f03fbeec..82673db4743ba3f92858f355e8d095cc2425ec82 100644 (file)
@@ -132,7 +132,7 @@ int Systray::calcTrayWindowX()
 int Systray::calcTrayWindowY()
 {
 #ifdef Q_OS_OSX
-    // macOS menu bar is always 22 (effective) pixels and at the top
+    // macOS menu bar is always 22 (effective) pixels
     // don't use availableGeometry() here, because this also excludes the dock
     return 22+6;
 #else
@@ -162,7 +162,8 @@ int Systray::calcTrayWindowY()
         }
     } else {
         // tray icon is on the top
-#endif
+        return (trayScreen->geometry().height() - trayScreen->availableGeometry().height()) + 6;
     }
+#endif
 }
 } // namespace OCC