mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-24 11:36:57 -04:00
fix window placement
Signed-off-by: Armin Schrenk <armin.schrenk@skymatic.de>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user