From 0411a761e5728dc76916e9ba963ad40e25120ad9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Fri, 10 Apr 2020 21:39:42 +0800 Subject: [PATCH] Update. Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- winnativeeventfilter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winnativeeventfilter.cpp b/winnativeeventfilter.cpp index 04c66c5..8014b26 100644 --- a/winnativeeventfilter.cpp +++ b/winnativeeventfilter.cpp @@ -705,6 +705,9 @@ void WinNativeEventFilter::updateGlass(HWND handle) { margins = {-1, -1, -1, -1}; } m_lpDwmExtendFrameIntoClientArea(handle, &margins); + m_lpSetWindowPos(handle, nullptr, 0, 0, 0, 0, + SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOSIZE | + SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER); m_lpRedrawWindow(handle, nullptr, nullptr, RDW_INVALIDATE | RDW_ERASE | RDW_FRAME | RDW_ALLCHILDREN); }