feat: Windows spawn on same screen as main window
@@ -91,6 +91,9 @@ public class WindowManager {
stage.setOnCloseRequest(e -> {
windows.remove(stage);
});
+ // Set window owner to main window
+ if (mainWindow != null)
+ stage.initOwner(mainWindow.getStage());
return stage;
}
