chore: xid is drop in debug, cause coredump

it should use copy

Log:
This commit is contained in:
chenhongtao 2023-11-22 11:20:19 +08:00 committed by deepin-bot[bot]
parent 919a2b5a49
commit 85deffe309

View File

@ -365,7 +365,7 @@ void TaskManager::doActiveWindow(XWindow xid)
}
XCB->changeActiveWindow(xid);
QTimer::singleShot(50, [&] {
QTimer::singleShot(50, [xid] {
XCB->restackWindow(xid);
});
}
@ -1572,4 +1572,4 @@ void TaskManager::cancelPreviewWindow()
bool TaskManager::showMultiWindow() const
{
return m_showMultiWindow;
}
}