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:
parent
e0e4c0ae11
commit
a51d8bb47d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user