feat(system-tray): using native popup

Change-Id: Ia80e3c3c10882ff6da7528f79967b085d79de409
This commit is contained in:
石博文 2018-02-28 13:51:42 +08:00
parent e7b72e07d3
commit 354cfd9fa0
Notes: gerrit 2018-02-28 11:13:21 +00:00
Verified+1: Anonymous Coward #1000004
Verified+1: <zhaofangfang@linuxdeepin.com>
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Wed, 28 Feb 2018 11:13:16 +0000
Reviewed-on: https://cr.deepin.io/32062
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 9 additions and 3 deletions

10
debian/rules vendored
View File

@ -8,13 +8,19 @@ export QT_SELECT=5
%:
dh $@ --parallel
override_dh_auto_configure:
dh_auto_configure -- \
DOCK_TRAY_USE_NATIVE_POPUP=YES
ifeq ($(DEB_BUILD_ARCH), mips64el)
override_dh_auto_configure:
dh_auto_configure -- QMAKE_CC=clang QMAKE_CXX=clang++
dh_auto_configure -- QMAKE_CC=clang QMAKE_CXX=clang++ \
DOCK_TRAY_USE_NATIVE_POPUP=YES
endif
ifeq ($(DEB_BUILD_ARCH), mipsel)
override_dh_auto_configure:
dh_auto_configure -- QMAKE_CC=clang QMAKE_CXX=clang++
dh_auto_configure -- QMAKE_CC=clang QMAKE_CXX=clang++ \
DOCK_TRAY_USE_NATIVE_POPUP=YES
endif

View File

@ -79,7 +79,7 @@ XWindowTrayWidget::XWindowTrayWidget(quint32 winId, QWidget *parent)
connect(m_updateTimer, &QTimer::timeout, this, &XWindowTrayWidget::refershIconImage);
#ifdef DOCK_TRAY_USE_NATIVE_POPUP
connect(m_sendHoverEvent, &QTimer::timeout, this, &TrayWidget::sendHoverEvent);
connect(m_sendHoverEvent, &QTimer::timeout, this, &XWindowTrayWidget::sendHoverEvent);
#endif
setMouseTracking(true);