diff --git a/src/core/framelesshelper_win.cpp b/src/core/framelesshelper_win.cpp index 0e488cc1..62ad8fd1 100644 --- a/src/core/framelesshelper_win.cpp +++ b/src/core/framelesshelper_win.cpp @@ -648,7 +648,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me const LPARAM lParam = msg->lParam; #if (QT_VERSION < QT_VERSION_CHECK(6, 5, 1)) - const auto updateRestoreGeometry = [windowId, &muData](const bool ignoreWindowState) -> void { + const auto updateRestoreGeometry = [windowId, &data, &muData](const bool ignoreWindowState) -> void { if (!ignoreWindowState && !Utils::isWindowNoState(windowId)) { return; }