mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Remove unnecessary window position update
This commit is contained in:
parent
8a684caf1b
commit
9fa35aff21
1 changed files with 0 additions and 3 deletions
|
@ -112,9 +112,6 @@ public class AppWindowHelper {
|
||||||
AppFont.normal(a.getDialogPane());
|
AppFont.normal(a.getDialogPane());
|
||||||
var s = (Stage) a.getDialogPane().getScene().getWindow();
|
var s = (Stage) a.getDialogPane().getScene().getWindow();
|
||||||
s.setOnShown(event -> {
|
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 -> {
|
clampWindow(s).ifPresent(rectangle2D -> {
|
||||||
s.setX(rectangle2D.getMinX());
|
s.setX(rectangle2D.getMinX());
|
||||||
s.setY(rectangle2D.getMinY());
|
s.setY(rectangle2D.getMinY());
|
||||||
|
|
Loading…
Reference in a new issue