diff --git a/src/FluFramelessHelper.cpp b/src/FluFramelessHelper.cpp index 3f4233e2..603082d1 100644 --- a/src/FluFramelessHelper.cpp +++ b/src/FluFramelessHelper.cpp @@ -77,7 +77,18 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void * { return false; } - if(uMsg == WM_NCCALCSIZE){ + const WPARAM wParam = msg->wParam; + const LPARAM lParam = msg->lParam; + if(uMsg == WM_WINDOWPOSCHANGING){ + WINDOWPOS* wp = reinterpret_cast(lParam); + if (wp != nullptr && (wp->flags & SWP_NOSIZE) == 0) + { + wp->flags |= SWP_NOCOPYBITS; + *result = DefWindowProc(hwnd, uMsg, wParam, lParam); + return true; + } + return false; + }else if(uMsg == WM_NCCALCSIZE){ *result = WVR_REDRAW; return true; }else if(uMsg == WM_NCPAINT){