summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/main.cc
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-08-22 22:03:43 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-08-22 22:03:43 +0200
commit8f514540fcb06ca42c2829313b4058e45dda3a53 (patch)
tree6e07e7131d3c269bb2b2403c7828307b4f0c81dc /kdesktop/lock/main.cc
parent02f53174686c1690c576f09f08e0936dc1f94ff5 (diff)
downloadtdebase-8f514540fcb06ca42c2829313b4058e45dda3a53.tar.gz
tdebase-8f514540fcb06ca42c2829313b4058e45dda3a53.zip
Disable use of SAK if TSAK is not built
Thanks to Francois Andriot for the patch This resolves Bug 1180
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r--kdesktop/lock/main.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 8f6f76b28..56b4b5fed 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -207,8 +207,11 @@ int main( int argc, char **argv )
struct stat st;
KSimpleConfig* tdmconfig;
OPEN_TDMCONFIG_AND_SET_GROUP
+#ifdef BUILD_TSAK
trinity_desktop_lock_use_sak = tdmconfig->readBoolEntry("UseSAK", true);
-
+#else
+ trinity_desktop_lock_use_sak = false;
+#endif
LockProcess process;
// Start loading core functions, such as the desktop wallpaper interface
@@ -272,7 +275,11 @@ int main( int argc, char **argv )
trinity_desktop_lock_use_system_modal_dialogs = !KDesktopSettings::useUnmanagedLockWindows();
trinity_desktop_lock_delay_screensaver_start = KDesktopSettings::delaySaverStart();
if (trinity_desktop_lock_use_system_modal_dialogs) {
+#ifdef BUILD_TSAK
trinity_desktop_lock_use_sak = tdmconfig->readBoolEntry("UseSAK", true);
+#else
+ trinity_desktop_lock_use_sak = false;
+#endif
}
else {
trinity_desktop_lock_use_sak = false; // If SAK is enabled with unmanaged windows, the SAK dialog will never close and will "burn in" the screen