From 9e31d3156c0461fcffef9fbe6a6d7ee9151f1cb1 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 21 Sep 2021 23:52:54 +0100 Subject: [PATCH 11/11] Revert "xembed: adapt to changes in KNotifications" The file org.kde.StatusNotifierItem was syncronised with up-to-date master, despite being previous edited to be only supported actions. Whilst it seems harmless the line: + means we now advertise this property. The default constructor for QDBusObjectPath is "/". Plasma-workspace "correctly" thinks we have a supported DBus menu and therefore don't want to receive context menu events. This reverts commit e782a1248d08adbaa9e3b4ef490c24765c6519c4. The XML file gains a comment at the top so this doesn't happen again. BUG: 442758 --- .../org.kde.StatusNotifierItem.xml | 42 ++----------------- xembed-sni-proxy/sniproxy.cpp | 6 --- xembed-sni-proxy/sniproxy.h | 2 - 3 files changed, 3 insertions(+), 47 deletions(-) diff --git a/xembed-sni-proxy/org.kde.StatusNotifierItem.xml b/xembed-sni-proxy/org.kde.StatusNotifierItem.xml index 53989c7b1..0cd7edb1a 100644 --- a/xembed-sni-proxy/org.kde.StatusNotifierItem.xml +++ b/xembed-sni-proxy/org.kde.StatusNotifierItem.xml @@ -1,5 +1,7 @@ + @@ -8,48 +10,13 @@ - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - @@ -85,9 +52,6 @@ - - - diff --git a/xembed-sni-proxy/sniproxy.cpp b/xembed-sni-proxy/sniproxy.cpp index 9a6a7b5be..6faeb8e93 100644 --- a/xembed-sni-proxy/sniproxy.cpp +++ b/xembed-sni-proxy/sniproxy.cpp @@ -594,9 +594,3 @@ void SNIProxy::sendClick(uint8_t mouseButton, int x, int y) sendingClickEvent = false; } - -void SNIProxy::ProvideXdgActivationToken(const QString &token) -{ - // Skip, Xembed is well-known for being X - Q_UNUSED(token); -} diff --git a/xembed-sni-proxy/sniproxy.h b/xembed-sni-proxy/sniproxy.h index 6ff115005..7d91c740b 100644 --- a/xembed-sni-proxy/sniproxy.h +++ b/xembed-sni-proxy/sniproxy.h @@ -80,8 +80,6 @@ public: */ KDbusImageVector IconPixmap() const; - void ProvideXdgActivationToken(const QString &token); - public Q_SLOTS: // interaction /** -- 2.33.0