diff --git a/src/abstract_client.cpp b/src/abstract_client.cpp index f65915e4f6..dc802d4c4b 100644 --- a/src/abstract_client.cpp +++ b/src/abstract_client.cpp @@ -1495,7 +1495,6 @@ void AbstractClient::setupWindowManagementInterface() using namespace KWaylandServer; auto w = waylandServer()->windowManagement()->createWindow(this, internalId()); w->setTitle(caption()); - w->setVirtualDesktop(isOnAllDesktops() ? 0 : desktop() - 1); w->setActive(isActive()); w->setFullscreen(isFullScreen()); w->setKeepAbove(keepAbove()); @@ -1584,11 +1583,6 @@ void AbstractClient::setupWindowManagementInterface() performMouseCommand(Options::MouseResize, Cursors::self()->mouse()->pos()); } ); - connect(w, &PlasmaWindowInterface::virtualDesktopRequested, this, - [this] (quint32 desktop) { - workspace()->sendClientToDesktop(this, desktop + 1, true); - } - ); connect(w, &PlasmaWindowInterface::fullscreenRequested, this, [this] (bool set) { setFullScreen(set, false); @@ -1640,18 +1634,6 @@ void AbstractClient::setupWindowManagementInterface() w->addPlasmaVirtualDesktop(vd->id()); } - //this is only for the legacy - connect(this, &AbstractClient::desktopChanged, w, - [w, this] { - if (isOnAllDesktops()) { - w->setOnAllDesktops(true); - return; - } - w->setVirtualDesktop(desktop() - 1); - w->setOnAllDesktops(false); - } - ); - //Plasma Virtual desktop management //show/hide when the window enters/exits from desktop connect(w, &PlasmaWindowInterface::enterPlasmaVirtualDesktopRequested, this,