summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-10-12 00:49:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-10-12 06:55:57 +0200
commitb61f27f7a5895aeebf1bd26a214dc4b50b14778e (patch)
treefe7473861118b92945463f84f6902ceafcac6ea6
parent524eb4d5f641d82ff2f7f74ca022fcf7712f39c9 (diff)
downloadtdebase-b61f27f7a5895aeebf1bd26a214dc4b50b14778e.tar.gz
tdebase-b61f27f7a5895aeebf1bd26a214dc4b50b14778e.zip
ksmserver: Fix FTBFS when building without tdehw library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 2b6ca044662284548f3e870ecec450311e1f5aee)
-rw-r--r--ksmserver/shutdown.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index 23ba4977b..3ce4beb06 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -321,8 +321,10 @@ void KSMServer::suspendInternal(int state)
kapp->dcopClient()->call("kdesktop", "KScreensaverIface", "lock()", TQCString(""), replyType, replyData);
}
+#ifdef WITH_TDEHWLIB
TDERootSystemDevice* rootDevice = hwDevices->rootSystemDevice();
rootDevice->setPowerState((TDESystemPowerState::TDESystemPowerState)state);
+#endif
}
bool KSMServer::suspend(int stype)