diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-10-12 00:49:38 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-10-12 06:55:57 +0200 |
commit | b61f27f7a5895aeebf1bd26a214dc4b50b14778e (patch) | |
tree | fe7473861118b92945463f84f6902ceafcac6ea6 /ksmserver | |
parent | 524eb4d5f641d82ff2f7f74ca022fcf7712f39c9 (diff) | |
download | tdebase-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)
Diffstat (limited to 'ksmserver')
-rw-r--r-- | ksmserver/shutdown.cpp | 2 |
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) |