app: [Windows] enable drop shadows for custom decorated windows

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-08-16 15:28:51 -06:00
parent 63550cc81e
commit 0e77a2b521
2 changed files with 22 additions and 0 deletions
+4
View File
@@ -711,6 +711,10 @@ func (w *window) Configure(options []Option) {
y = wr.Top
width = r.Right - r.Left
height = r.Bottom - r.Top
if !w.config.Decorated {
// Enable drop shadows when we draw decorations.
windows.DwmExtendFrameIntoClientArea(w.hwnd, windows.Margins{-1, -1, -1, -1})
}
case Fullscreen:
mi := windows.GetMonitorInfo(w.hwnd)