5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-16 17:09:28 +08:00

[darwin]AlwaysOnTop: NSStatusWindowLevel -> NSFloatingWindowLevel

This commit is contained in:
Lea Anthony 2023-09-30 14:27:48 +10:00
parent b757292211
commit 86b6e10620
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -184,7 +184,7 @@ void windowSetSize(void* nsWindow, int width, int height) {
// Set NSWindow always on top
void windowSetAlwaysOnTop(void* nsWindow, bool alwaysOnTop) {
// Set window always on top on main thread
[(WebviewWindow*)nsWindow setLevel:alwaysOnTop ? NSStatusWindowLevel : NSNormalWindowLevel];
[(WebviewWindow*)nsWindow setLevel:alwaysOnTop ? NSFloatingWindowLevel : NSNormalWindowLevel];
}
// Load URL in NSWindow