mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Revert "feat: 解决鼠标移动右键菜单消失问题"
This reverts commit 5a5703da6a3a5c4f71d3c005bc3654d43db385f6. Change-Id: I6fdea4c6ec8d6b6f9cfd9dbafc8fbdac0ccb13b1
This commit is contained in:
parent
a5bb734b36
commit
6437dd9c3e
@ -48,8 +48,7 @@ Menu::Menu(QWidget *dockItem, QWidget *parent)
|
||||
|
||||
void Menu::onButtonPress()
|
||||
{
|
||||
QPoint curPos = QCursor::pos() * qApp->devicePixelRatio();
|
||||
if (!QRect(m_dockInter->frontendWindowRect()).contains(curPos))
|
||||
if (!QRect(m_dockInter->frontendWindowRect()).contains(QCursor::pos()))
|
||||
this->hide();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user