Commit c6b19955 authored by Prince Gupta's avatar Prince Gupta 💬 Committed by Jean-Baptiste Kempf
Browse files

qt: show shadows with CSD on windows

closes #25565
parent a787392b
......@@ -40,6 +40,8 @@
#include <QWindow>
#include <qpa/qplatformnativeinterface.h>
#include <dwmapi.h>
#define WM_APPCOMMAND 0x0319
#define APPCOMMAND_VOLUME_MUTE 8
......@@ -153,6 +155,10 @@ private:
SetWindowLong (winId, GWL_STYLE, style);
}
// add back shadows
const MARGINS m {0, 0, (m_useClientSideDecoration ? 1 : 0) /* top margin */ , 0};
DwmExtendFrameIntoClientArea(winId, &m);
SetWindowPos(winId, NULL, 0, 0, 0, 0,
SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOCOPYBITS |
SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREPOSITION |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment