CustomFrame: Apply the drop-shadow code initially

This commit is contained in:
Sergio Martins
2021-02-17 19:46:37 +00:00
parent cc80afff7d
commit 98d892f643

View File

@@ -600,6 +600,14 @@ bool CustomFrameHelper::nativeEventFilter(const QByteArray &eventType, void *mes
if (!window)
return false;
const char *propertyName = "kddw_customframe_setup_ran";
const bool setupRan = window->property(propertyName).toBool();
if (!setupRan) {
// Add drop shadow
WidgetResizeHandler::setupWindow(window);
window->setProperty(propertyName, true);
}
return WidgetResizeHandler::handleWindowsNativeEvent(window, msg, result);
#else
return false;