Permalink
Browse files

fix #674,show correct menu for plasma taskmanagers

--when the right click menu is triggered the event should
also push to the applet for the plasma taskmanagers
  • Loading branch information...
1 parent cc6c273 commit 4c06e5000b733f6da33ee285e9961b49f57fca69 @psifidotos committed Aug 13, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/dockview.cpp
View
@@ -1574,11 +1574,11 @@ void DockView::mousePressEvent(QMouseEvent *event)
//qDebug() << "3 ...";
if (applet) {
- KPluginMetaData meta = applet->kPackage().metadata();
+ const auto &provides = KPluginMetaData::readStringList(applet->pluginMetaData().rawData(), QStringLiteral("X-Plasma-Provides"));
//qDebug() << "3.5 ...";
- if (meta.pluginId() != "org.kde.latte.plasmoid") {
+ if (!provides.contains(QLatin1String("org.kde.plasma.multitasking"))) {
//qDebug() << "4...";
QMenu *desktopMenu = new QMenu;
desktopMenu->setAttribute(Qt::WA_DeleteOnClose);

1 comment on commit 4c06e50

Please sign in to comment.