mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Merge 13e387e88b into bb4fbf9574
This commit is contained in:
commit
9b89ce3468
2 changed files with 5 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ After processing, the content will be moved to the main changelog and this file
|
|||
|
||||
## Fixed
|
||||
<!-- Bug fixes -->
|
||||
- Fix fullscreen click-through on Windows when using `Frameless: true` with `BackgroundTypeTransparent` (#4408) by @leaanthony
|
||||
|
||||
## Deprecated
|
||||
<!-- Soon-to-be removed features -->
|
||||
|
|
|
|||
|
|
@ -890,10 +890,13 @@ func (w *windowsWebviewWindow) fullscreen() {
|
|||
w32.GWL_STYLE,
|
||||
w.previousWindowStyle & ^uint32(w32.WS_OVERLAPPEDWINDOW) | (w32.WS_POPUP|w32.WS_VISIBLE),
|
||||
)
|
||||
// Remove WS_EX_TRANSPARENT and WS_EX_LAYERED to ensure mouse events are captured in fullscreen mode.
|
||||
// Both flags must be removed to fix click-through issues when Frameless + BackgroundTypeTransparent are used.
|
||||
// See: https://github.com/wailsapp/wails/issues/4408
|
||||
w32.SetWindowLong(
|
||||
w.hwnd,
|
||||
w32.GWL_EXSTYLE,
|
||||
w.previousWindowExStyle & ^uint32(w32.WS_EX_DLGMODALFRAME),
|
||||
w.previousWindowExStyle & ^uint32(w32.WS_EX_DLGMODALFRAME|w32.WS_EX_TRANSPARENT|w32.WS_EX_LAYERED),
|
||||
)
|
||||
w.isCurrentlyFullscreen = true
|
||||
w32.SetWindowPos(w.hwnd, w32.HWND_TOP,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue