fix: xembed tray click response

some tray will create and disappear vary fast, for example fcitx-sogou
that will cause dock only hold the disappeared tray's winid

https://tower.im/teams/9487/todos/227205/
https://github.com/linuxdeepin/internal-discussion/issues/793

Change-Id: I14643e1d16a3ed1dfeb10fc89da6ee00e8d4edc5
This commit is contained in:
listenerri 2019-01-08 16:36:54 +08:00
parent b8ecc61652
commit 05babb8d52
Notes: gerrit 2019-01-09 15:19:44 +08:00
Verified+1: <jenkins@deepin.com>
Code-Review+2: listenerri <listenerri@gmail.com>
Submitted-by: listenerri <listenerri@gmail.com>
Submitted-at: Wed, 09 Jan 2019 15:19:43 +0800
Reviewed-on: https://cr.deepin.io/41188
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -93,7 +93,7 @@ void TrayPlugin::init(PluginProxyInterface *proxyInter)
connect(m_sniWatcher, &StatusNotifierWatcher::StatusNotifierItemRegistered, this, &TrayPlugin::sniItemsChanged);
connect(m_sniWatcher, &StatusNotifierWatcher::StatusNotifierItemUnregistered, this, &TrayPlugin::sniItemsChanged);
connect(m_trayInter, &DBusTrayManager::TrayIconsChanged, this, &TrayPlugin::trayListChanged);
connect(m_trayInter, &DBusTrayManager::TrayIconsChanged, this, &TrayPlugin::trayListChanged, Qt::QueuedConnection);
connect(m_trayInter, &DBusTrayManager::Changed, this, &TrayPlugin::trayChanged);
connect(m_systemTraysController, &SystemTraysController::systemTrayAdded, this, &TrayPlugin::addTrayWidget);