mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: [Windows] enable drop shadows for custom decorated windows
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user