From aded7178706abf38a8016e70ef5ff0ad42287952 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 25 Jan 2019 10:32:15 +0000 Subject: [PATCH] Reload virtual desktop name on change Summary: PlasmaVirtualDesktop at a protocol level is double buffered. There's a done() command emitted after property changes. After this the name might have changed. Test Plan: Changed a desktop name (with relevant kwin patch) Name changed in the pager tooltip Reviewers: #plasma, hein Reviewed By: #plasma, hein Subscribers: zzag, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D18512 --- libtaskmanager/virtualdesktopinfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtaskmanager/virtualdesktopinfo.cpp b/libtaskmanager/virtualdesktopinfo.cpp index f89a6df0b..6bfdd59aa 100644 --- a/libtaskmanager/virtualdesktopinfo.cpp +++ b/libtaskmanager/virtualdesktopinfo.cpp @@ -364,6 +364,12 @@ void VirtualDesktopInfo::WaylandPrivate::addDesktop(const QString &id, quint32 p } ); + QObject::connect(desktop, &KWayland::Client::PlasmaVirtualDesktop::done, q, + [this]() { + emit desktopNamesChanged(); + } + ); + if (desktop->isActive()) { currentVirtualDesktop = id; emit currentDesktopChanged();