From d6b1d78e6eaf0db2f62ea4a8d2be1e5388651070 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 24 Jul 2024 03:21:24 +0000 Subject: [PATCH] Add macos native wait --- .../io/xpipe/app/core/window/NativeMacOsWindowControl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/core/window/NativeMacOsWindowControl.java b/app/src/main/java/io/xpipe/app/core/window/NativeMacOsWindowControl.java index 0b2e2ac30..6d9561101 100644 --- a/app/src/main/java/io/xpipe/app/core/window/NativeMacOsWindowControl.java +++ b/app/src/main/java/io/xpipe/app/core/window/NativeMacOsWindowControl.java @@ -3,6 +3,7 @@ package io.xpipe.app.core.window; import com.sun.jna.NativeLong; import io.xpipe.app.core.AppProperties; import io.xpipe.app.util.NativeBridge; +import io.xpipe.app.util.ThreadHelper; import io.xpipe.core.util.ModuleHelper; import javafx.stage.Window; import lombok.Getter; @@ -40,6 +41,9 @@ public class NativeMacOsWindowControl { } lib.get().setAppearance(new NativeLong(nsWindow), seamlessFrame, darkMode); + if (seamlessFrame) { + ThreadHelper.sleep(100); + } return true; } }