Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37916133
en ru br
Репозитории ALT

Группа :: Графические оболочки/Прочее
Пакет: deepin-dock

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0001-fix-left-key-to-pop-the-menu-and-get-stuck.patch
Скачать


From 92bb6933eb44df99b859979e85f3b81be1219c70 Mon Sep 17 00:00:00 2001
From: donghualin <donghualin@uniontech.com>
Date: Fri, 30 Dec 2022 15:50:31 +0800
Subject: [PATCH] fix: Х╖ёЕ├ЁSNIЕ╨■Г■╗Е╥╕И■╝Е╪╧Е┤╨Х▐°Е█∙Е░▌Е█║Ф╜╩Г └И≈╝И╒≤
Е╟├Ф≤╬Г╓╨Х▐°Е█∙Г └Ф⌠█Д╫°Г╖╩Е┼╗Е┬╟Д╦╩Г╨©Г╗▀Д╦╜Е╝·Г▌╟
Log:
Influence: Е╝┴Хё┘Ф√╟Г┴┬QQО╪▄Е╥╕И■╝Г┌╧Е┤╩Ф┴≤Г⌡≤Е▄╨Г └QQО╪▄Е╪╧Е┤╨Х▐°Е█∙О╪▄Х╖┌Е╞÷Х▐°Е█∙Ф≤╞Е░╕Е▐╞Г■╗
Bug: https://pms.uniontech.com/task-view-233111.html
---
 plugins/tray/snitraywidget.cpp | 4 +++-
 plugins/tray/snitraywidget.h   | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/tray/snitraywidget.cpp b/plugins/tray/snitraywidget.cpp
index 192bc47..cb91969 100644
--- a/plugins/tray/snitraywidget.cpp
+++ b/plugins/tray/snitraywidget.cpp
@@ -109,4 +109,6 @@ SNITrayWidget::SNITrayWidget(const QString &sniServicePath, QWidget *parent)
     connect(m_sniInter, &StatusNotifierItem::StatusChanged, this, &SNITrayWidget::onSNIStatusChanged);
 
+    connect(this, &SNITrayWidget::requestShowMenu, this, &SNITrayWidget::showContextMenu);
+
     // the following signals can be emit automatically
     // need refresh cached properties in these slots
@@ -161,5 +163,5 @@ void SNITrayWidget::sendClick(uint8_t mouseButton, int x, int y)
             reply.waitForFinished();
             if (reply.isError()) {
-                showContextMenu(x,y);
+                Q_EMIT requestShowMenu(x, y);
             }
         });
diff --git a/plugins/tray/snitraywidget.h b/plugins/tray/snitraywidget.h
index 6d16a15..d4f6b5b 100644
--- a/plugins/tray/snitraywidget.h
+++ b/plugins/tray/snitraywidget.h
@@ -61,4 +61,5 @@ public:
 Q_SIGNALS:
     void statusChanged(SNITrayWidget::ItemStatus status);
+    void requestShowMenu(int x, int y);
 
 private Q_SLOTS:
--
libgit2 1.3.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin