Remove unnecessary window position update

This commit is contained in:
crschnick 2024-01-01 16:08:28 +00:00
parent 8a684caf1b
commit 9fa35aff21

View file

@ -112,9 +112,6 @@ public class AppWindowHelper {
AppFont.normal(a.getDialogPane());
var s = (Stage) a.getDialogPane().getScene().getWindow();
s.setOnShown(event -> {
// Force recomputation of window bounds to properly position it on some linux systems
s.setX(s.getX() + 1);
clampWindow(s).ifPresent(rectangle2D -> {
s.setX(rectangle2D.getMinX());
s.setY(rectangle2D.getMinY());