5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 12:49:29 +08:00

[v2] Move "AlwaysOnTop" option

This commit is contained in:
Lea Anthony 2021-10-13 08:05:31 +11:00
parent e0e4c0ae11
commit a51d8bb47d

View File

@ -26,13 +26,13 @@ func NewWindow(parent winc.Controller, options *options.App) *Window {
var exStyle int
if options.Windows != nil {
exStyle = w32.WS_EX_CONTROLPARENT | w32.WS_EX_APPWINDOW
if options.AlwaysOnTop {
exStyle |= w32.WS_EX_TOPMOST
}
if options.Windows.WindowIsTranslucent {
exStyle |= w32.WS_EX_NOREDIRECTIONBITMAP
}
}
if options.AlwaysOnTop {
exStyle |= w32.WS_EX_TOPMOST
}
var dwStyle = w32.WS_OVERLAPPEDWINDOW
if options.Frameless {