summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2024-10-12 00:49:38 +0200
committerSlávek Banko <[email protected]>2024-10-12 00:49:38 +0200
commit2b6ca044662284548f3e870ecec450311e1f5aee (patch)
tree44fa55f7531003c1876f56e2d93024f867e73367
parent668224e529455607f20ad70dccb2036c54f07079 (diff)
downloadtdebase-2b6ca044662284548f3e870ecec450311e1f5aee.tar.gz
tdebase-2b6ca044662284548f3e870ecec450311e1f5aee.zip
ksmserver: Fix FTBFS when building without tdehw library.
Signed-off-by: Slávek Banko <[email protected]>
-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)