From 8a834fe71c35112b5b2d398a01f3109fbb297013 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 5 Dec 2025 16:38:37 +0100 Subject: [PATCH] fix window placement Signed-off-by: Armin Schrenk --- .../ui/notification/NotificationModule.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/notification/NotificationModule.java b/src/main/java/org/cryptomator/ui/notification/NotificationModule.java index d9beb076c..c6e8d6dd1 100644 --- a/src/main/java/org/cryptomator/ui/notification/NotificationModule.java +++ b/src/main/java/org/cryptomator/ui/notification/NotificationModule.java @@ -49,14 +49,14 @@ abstract class NotificationModule { window.setY(vBounds.getMinY()); } else { switch (SystemBarUtil.getPlacementOfSystembar(screen)) { - case TOP -> { - window.setX(vBounds.getMaxX() - window.getWidth()); - window.setY(vBounds.getMaxY() - window.getHeight()); - } - default -> { + case TOP -> { //place to middle top window.setX(vBounds.getMinX() + (vBounds.getWidth() - window.getWidth()) / 2.0); window.setY(vBounds.getMinY()); } + default -> { //place to right bottom + window.setX(vBounds.getMaxX() - window.getWidth()); + window.setY(vBounds.getMaxY() - window.getHeight()); + } } } }