From ae3d5e62cb7e66bcd746e4a3d9d247c8c1b85a59 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 10 May 2024 12:22:29 +0300 Subject: [PATCH] plasma: remove redundant method the window manager should probably not be changed if there are active applications (i.e. until the next login in most cases) to begin with Signed-off-by: Ivailo Monev --- kcontrol/componentchooser/componentchooserwm.cpp | 2 -- plasma/shells/plasma-desktop/dbus/org.kde.plasma.App.xml | 2 -- plasma/shells/plasma-desktop/plasmaapp.cpp | 5 ----- plasma/shells/plasma-desktop/plasmaapp.h | 1 - 4 files changed, 10 deletions(-) diff --git a/kcontrol/componentchooser/componentchooserwm.cpp b/kcontrol/componentchooser/componentchooserwm.cpp index b73103ed..9f176519 100644 --- a/kcontrol/componentchooser/componentchooserwm.cpp +++ b/kcontrol/componentchooser/componentchooserwm.cpp @@ -134,8 +134,6 @@ bool CfgWm::saveAndConfirm() if (tryWmLaunch()) { oldwm = currentWm(); cfg.sync(); - QDBusInterface plasma("org.kde.plasma-desktop", "/App", "local.PlasmaApp"); - plasma.call(QDBus::NoBlock, "wmChanged"); KMessageBox::information( window(), i18n("A new window manager is running.\n" diff --git a/plasma/shells/plasma-desktop/dbus/org.kde.plasma.App.xml b/plasma/shells/plasma-desktop/dbus/org.kde.plasma.App.xml index 44defa35..d36a7d4e 100644 --- a/plasma/shells/plasma-desktop/dbus/org.kde.plasma.App.xml +++ b/plasma/shells/plasma-desktop/dbus/org.kde.plasma.App.xml @@ -28,7 +28,5 @@ - - diff --git a/plasma/shells/plasma-desktop/plasmaapp.cpp b/plasma/shells/plasma-desktop/plasmaapp.cpp index ecbefccb..fd670b47 100644 --- a/plasma/shells/plasma-desktop/plasmaapp.cpp +++ b/plasma/shells/plasma-desktop/plasmaapp.cpp @@ -1157,11 +1157,6 @@ void PlasmaApp::logout(int confirm, int sdtype) m_dialogActive = false; } -void PlasmaApp::wmChanged() -{ - // changing the window manager happens from the KCM, currently nothing to do when that happens -} - void PlasmaApp::captureDesktop() { KToolInvocation::self()->kdeinitExec("ksnapshot", QStringList() << "--fullscreen"); diff --git a/plasma/shells/plasma-desktop/plasmaapp.h b/plasma/shells/plasma-desktop/plasmaapp.h index 51776526..9b73bc39 100644 --- a/plasma/shells/plasma-desktop/plasmaapp.h +++ b/plasma/shells/plasma-desktop/plasmaapp.h @@ -108,7 +108,6 @@ public Q_SLOTS: void suspendStartup(const QString &app); void resumeStartup(const QString &app); void logout(int confirm, int sdtype); - void wmChanged(); protected: #ifdef Q_WS_X11