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()); + } } } }