Skip to content

Commit c3ec3e4

Browse files
Fix proof caching window position
On Linux (KDE, Wayland) setLocationByPlatform does not work properly. The window is positioned in the top-left corner instead of center.
1 parent 118d7b9 commit c3ec3e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

keyext.caching/src/main/java/de/uka/ilkd/key/gui/plugins/caching/ReferenceSearchDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public ReferenceSearchDialog(Proof proof, ReferenceSearchDialogListener listener
6161
super(MainWindow.getInstance());
6262
table = new ReferenceSearchTable(proof, MainWindow.getInstance().getMediator());
6363
table.getTableHeader().setReorderingAllowed(false);
64-
this.setLocationByPlatform(true);
6564
this.setTitle("Proof Caching");
6665
this.listener = listener;
6766

@@ -100,6 +99,7 @@ public ReferenceSearchDialog(Proof proof, ReferenceSearchDialogListener listener
10099
}
101100

102101
this.pack();
102+
setLocationRelativeTo(MainWindow.getInstance());
103103
}
104104

105105
private JButton getApplyButton() {

0 commit comments

Comments
 (0)