restore compatibility with KF 5.26

v0.6
Michail Vourlakos 8 years ago
parent de90ff3392
commit 783654d07e

@ -694,7 +694,7 @@ void DockView::mousePressEvent(QMouseEvent *event)
} }
if (applet) { if (applet) {
KPluginMetaData meta = applet->pluginMetaData(); KPluginMetaData meta = applet->kPackage().metadata();
if ((meta.pluginId() != "org.kde.plasma.systemtray") && if ((meta.pluginId() != "org.kde.plasma.systemtray") &&
(meta.pluginId() != "org.kde.latte.plasmoid")) { (meta.pluginId() != "org.kde.latte.plasmoid")) {
@ -709,7 +709,7 @@ void DockView::mousePressEvent(QMouseEvent *event)
if (this->mouseGrabberItem()) { if (this->mouseGrabberItem()) {
//workaround, this fixes for me most of the right click menu behavior //workaround, this fixes for me most of the right click menu behavior
if (applet) { if (applet) {
KPluginMetaData meta = applet->pluginMetaData(); KPluginMetaData meta = applet->kPackage().metadata();
//gives the systemtray direct right click behavior for its applets //gives the systemtray direct right click behavior for its applets
if (meta.pluginId() != "org.kde.plasma.systemtray") { if (meta.pluginId() != "org.kde.plasma.systemtray") {

Loading…
Cancel
Save