Minor tweaks.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2020-10-16 15:53:20 +08:00
parent 208e831fc5
commit 0debbb890f
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,9 @@ void updateWindow(QWidget *widget)
{
Q_ASSERT(widget);
if (widget->isTopLevel()) {
WinNativeEventFilter::updateWindow(getRawHandle(widget), true, true);
void *handle = getRawHandle(widget);
WinNativeEventFilter::updateFrameMargins(handle);
WinNativeEventFilter::updateWindow(handle, true, true);
}
}

View File

@ -143,7 +143,7 @@ public:
// On Win10 it's the Acrylic effect.
static bool setBlurEffectEnabled(void *handle /* HWND */, const bool enabled = true);
// a
// Thin wrapper of DwmExtendFrameIntoClientArea().
static void updateFrameMargins(void *handle /* HWND */);
///////////////////////////////////////////////