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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user