summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/main.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 19:30:55 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 19:30:55 -0500
commit4120a763e79d1e64f7f860a89faafdcb1f19e8e9 (patch)
tree21959b1b6525c8d94a2efb58743da74d8fef408f /kdesktop/lock/main.cc
parent670343f4365dd72eb4f3493c2bb3e93884aaf0db (diff)
downloadtdebase-4120a763e79d1e64f7f860a89faafdcb1f19e8e9.tar.gz
tdebase-4120a763e79d1e64f7f860a89faafdcb1f19e8e9.zip
Fix classic mode screensavers
This partially resolves Bug 811
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r--kdesktop/lock/main.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 7235776fb..5ac0a588a 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -53,6 +53,7 @@ TQXLibWindowList trinity_desktop_lock_hidden_window_list;
bool trinity_desktop_lock_use_system_modal_dialogs = FALSE;
bool trinity_desktop_lock_delay_screensaver_start = FALSE;
bool trinity_desktop_lock_use_sak = FALSE;
+bool trinity_desktop_lock_hide_active_windows = FALSE;
bool trinity_desktop_lock_forced = FALSE;
@@ -195,6 +196,11 @@ static void sigusr5_handler(int)
signalled_run = TRUE;
}
+static int trapXErrors(Display *, XErrorEvent *)
+{
+ return 0;
+}
+
// -----------------------------------------------------------------------------
int main( int argc, char **argv )
@@ -209,6 +215,8 @@ int main( int argc, char **argv )
KApplication::disableAutoDcopRegistration(); // not needed
+ XSetErrorHandler(trapXErrors);
+
while (1 == 1) {
signalled_forcelock = FALSE;
signalled_dontlock = FALSE;
@@ -365,6 +373,7 @@ int main( int argc, char **argv )
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
trinity_desktop_lock_delay_screensaver_start = false; // If trinity_desktop_lock_delay_screensaver_start is true with unmanaged windows, the lock dialog may never appear
}
+ trinity_desktop_lock_hide_active_windows = KDesktopSettings::hideActiveWindowsFromSaver();
delete tdmconfig;