mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 00:09:56 +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
|
var exStyle int
|
||||||
if options.Windows != nil {
|
if options.Windows != nil {
|
||||||
exStyle = w32.WS_EX_CONTROLPARENT | w32.WS_EX_APPWINDOW
|
exStyle = w32.WS_EX_CONTROLPARENT | w32.WS_EX_APPWINDOW
|
||||||
if options.AlwaysOnTop {
|
|
||||||
exStyle |= w32.WS_EX_TOPMOST
|
|
||||||
}
|
|
||||||
if options.Windows.WindowIsTranslucent {
|
if options.Windows.WindowIsTranslucent {
|
||||||
exStyle |= w32.WS_EX_NOREDIRECTIONBITMAP
|
exStyle |= w32.WS_EX_NOREDIRECTIONBITMAP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if options.AlwaysOnTop {
|
||||||
|
exStyle |= w32.WS_EX_TOPMOST
|
||||||
|
}
|
||||||
|
|
||||||
var dwStyle = w32.WS_OVERLAPPEDWINDOW
|
var dwStyle = w32.WS_OVERLAPPEDWINDOW
|
||||||
if options.Frameless {
|
if options.Frameless {
|
||||||
|
Loading…
Reference in New Issue
Block a user