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 <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-10 12:22:29 +03:00
parent 063f5e745e
commit ae3d5e62cb
4 changed files with 0 additions and 10 deletions

View file

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

View file

@ -28,7 +28,5 @@
<arg name="confirm" type="i" direction="in"/>
<arg name="sdtype" type="i" direction="in"/>
</method>
<method name="wmChanged">
</method>
</interface>
</node>

View file

@ -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");

View file

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