mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: Dock menu unable to get timely response
wayland environment, dock menu unable to get timely response, because of the nesting and blocking of event loops Log: Influence: dock menu Bug: https://pms.uniontech.com/zentao/bug-view-100043.html Change-Id: I427ba4c287aae71b3ad57728635889bdf3d0e541 (cherry picked from commit cbf54c9f79fff07abc7a9574f5ff0defea2b3dff)
This commit is contained in:
parent
363e4bb6cf
commit
a155868be6
@ -205,7 +205,9 @@ void MainWindow::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
e->ignore();
|
||||
if (e->button() == Qt::RightButton) {
|
||||
m_menuWorker->showDockSettingsMenu();
|
||||
QTimer::singleShot(10, this, [this]{
|
||||
m_menuWorker->showDockSettingsMenu();
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user