windows: Fix a -Wunused-lambda-capture warning

This commit is contained in:
Sergio Martins
2021-07-10 06:27:23 -07:00
parent a2e2b32fc3
commit 768c51f01c

View File

@@ -526,7 +526,7 @@ void WidgetResizeHandler::setupWindow(QWindow *window)
#if defined(Q_OS_WIN)
if (KDDockWidgets::usesAeroSnapWithCustomDecos()) {
const auto wid = HWND(window->winId());
connect(window, &QWindow::screenChanged, window, [window, wid] {
connect(window, &QWindow::screenChanged, window, [wid] {
// Qt honors our frame hijacking usually... but when screen changes we must give it a
// nudge. Otherwise what Qt thinks is the client area is not what Windows knows it is.
// SetWindowPos() will trigger an NCCALCSIZE message, which Qt will intercept and take