From bd3d275293821acd490a8d4e28e59860b8f0bae5 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 22 Oct 2021 17:39:18 +0300 Subject: [PATCH] wayland: Port away from deprecated legacy virtual desktop api in plasma window management --- src/abstract_client.cpp | 18 ------------------ 1 file changed, 18 deletions(-) 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,