take the name of the VirtualDesktop instance

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

BUG:403145
remotes/origin/Plasma/5.15
Marco Martin 7 years ago
parent 23dc03f734
commit f95a9618a7
  1. 2
      virtualdesktops.cpp

@ -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,

Loading…
Cancel
Save