ksmserver: Fix FTBFS when building without tdehw library.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/541/head
Slávek Banko 4 months ago
parent 668224e529
commit 2b6ca04466
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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)

Loading…
Cancel
Save