mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Add macos native wait
This commit is contained in:
parent
37de0f30c6
commit
d6b1d78e6e
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue