mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-06 15:11:38 +00:00
Remove unnecessary window position update
This commit is contained in:
1 parent
8a684caf1b
commit
9fa35aff21
1 file changed
-3
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user