Add macos native wait

This commit is contained in:
crschnick 2024-07-24 03:21:24 +00:00
parent 37de0f30c6
commit d6b1d78e6e

View file

@ -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;
}
}