take the name of the VirtualDesktop instance

the name of the PlasmaVirtualDesktopInterface must be taken from
the VirtualDesktop instance, not from itself

BUG:403145
This commit is contained in:
Marco Martin 2019-01-16 11:28:35 +01:00
parent 23dc03f734
commit f95a9618a7

View file

@ -98,7 +98,7 @@ void VirtualDesktopManager::setVirtualDesktopManagement(KWayland::Server::Plasma
VirtualDesktop *internalDesktop = desktopForX11Id(i);
PlasmaVirtualDesktopInterface *desktop = m_virtualDesktopManagement->createDesktop(internalDesktop->id());
desktop->setName(desktop->name());
desktop->setName(internalDesktop->name());
desktop->sendDone();
connect(desktop, &PlasmaVirtualDesktopInterface::activateRequested, this,