windows: Fix white line appearing at the top when using round corners

Don't call DwmExtendFrameIntoClientArea if we have round corners.
The client area needs to be rectangular
This commit is contained in:
Sergio Martins
2021-04-23 12:23:03 +01:00
parent b0cb983830
commit def6a0a6b2

View File

@@ -536,10 +536,6 @@ void WidgetResizeHandler::setupWindow(QWindow *window)
SetWindowPos(wid, 0, 0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
});
// Show drop-shadow:
MARGINS margins = { 0, 0, 0, 1 }; // arbitrary, just needs to be > 0 it seems
DwmExtendFrameIntoClientArea(wid, &margins);
}
#else
Q_UNUSED(window);