Set desktop name "atomically" when using the plasma virtual desktop protocol

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18373
This commit is contained in:
Vlad Zagorodniy 2019-01-19 00:12:49 +02:00
parent bae21154ea
commit 47e9e52df3

View file

@ -88,10 +88,7 @@ void VirtualDesktopManager::setVirtualDesktopManagement(KWayland::Server::Plasma
//create a new desktop when the client asks to
connect (m_virtualDesktopManagement, &PlasmaVirtualDesktopManagementInterface::desktopCreateRequested, this,
[this](const QString &name, quint32 position) {
VirtualDesktop *vd = createVirtualDesktop(position);
if (vd) {
vd->setName(name);
}
createVirtualDesktop(position, name);
}
);