From ce45ff9ec6b927f4af7197576d131c7d6844c5b5 Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 30 Jan 2024 10:54:01 +0000 Subject: [PATCH] Improve side window modality --- app/src/main/java/io/xpipe/app/core/AppWindowHelper.java | 4 ++++ 1 file changed, 4 insertions(+) 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 8795025fb..da1765f0e 100644 --- a/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java +++ b/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java @@ -64,6 +64,10 @@ public class AppWindowHelper { String title, Function> contentFunc, boolean bindSize, ObservableValue loading) { var stage = new Stage(); stage.setTitle(title); + if (AppMainWindow.getInstance() != null) { + stage.initOwner(AppMainWindow.getInstance().getStage()); + } + addIcons(stage); setupContent(stage, contentFunc, bindSize, loading); setupStylesheets(stage.getScene());