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 00:49:38 +0200 |
commit | 2b6ca044662284548f3e870ecec450311e1f5aee (patch) | |
tree | 44fa55f7531003c1876f56e2d93024f867e73367 | |
parent | 668224e529455607f20ad70dccb2036c54f07079 (diff) | |
download | tdebase-2b6ca044662284548f3e870ecec450311e1f5aee.tar.gz tdebase-2b6ca044662284548f3e870ecec450311e1f5aee.zip |
ksmserver: Fix FTBFS when building without tdehw library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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) |