From b61f27f7a5895aeebf1bd26a214dc4b50b14778e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 12 Oct 2024 00:49:38 +0200 Subject: ksmserver: Fix FTBFS when building without tdehw library. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 2b6ca044662284548f3e870ecec450311e1f5aee) --- ksmserver/shutdown.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ksmserver') 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) -- cgit v1.2.1