From 9fa35aff21151a337e390fd43f5ebae55733ffc0 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 1 Jan 2024 16:08:28 +0000 Subject: [PATCH] Remove unnecessary window position update --- app/src/main/java/io/xpipe/app/core/AppWindowHelper.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java b/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java index 9b27c315..10d34853 100644 --- a/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java +++ b/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java @@ -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());