fix popup not auto hide when using left-hand mouse

Change-Id: Ib7bf67e13177c3698459dfa0253c2c64c4fd1332
This commit is contained in:
石博文 2017-07-28 16:02:11 +08:00
parent 5c4b03fc28
commit e7664fc2d3
Notes: Deepin Code Review 2017-07-31 09:27:01 +08:00
Verified+1: Anonymous Coward #1000004
Verified+1: <zhaofangfang@linuxdeepin.com>
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Mon, 31 Jul 2017 09:26:58 +0800
Reviewed-on: https://cr.deepin.io/25093
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -128,9 +128,10 @@ bool DockPopupWindow::eventFilter(QObject *o, QEvent *e)
void DockPopupWindow::globalMouseRelease(int button, int x, int y, const QString &id)
{
Q_UNUSED(button);
// button_left
if (button != 1)
return;
// if (button != 1)
// return;
if (id != m_mouseAreaKey)
return;