summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/main.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-12 21:24:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-12 21:24:43 +0000
commita6e2ce7a2ae5690c60b6f1c3dfe7d19dd3e2ea7b (patch)
treede6cc45208d9ce40155326b657434c083206ecf6 /kdesktop/lock/main.cc
parentb971f9aae70373db39fb62a75c82f25e9252f6b3 (diff)
downloadtdebase-a6e2ce7a2ae5690c60b6f1c3dfe7d19dd3e2ea7b.tar.gz
tdebase-a6e2ce7a2ae5690c60b6f1c3dfe7d19dd3e2ea7b.zip
Fix desktop locking with opengl screensavers
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253062 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r--kdesktop/lock/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 667becaa0..14dd75384 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -34,10 +34,12 @@
#include <X11/Xlib.h>
#include <fixx11h.h>
-// [FIXME] These settings should be user configurable!
+// [FIXME] These two settings should be user configurable!
bool trinity_desktop_lock_use_system_modal_dialogs = FALSE;
bool trinity_desktop_lock_delay_screensaver_start = FALSE;
+bool trinity_desktop_lock_forced = FALSE;
+
bool MyApp::x11EventFilter( XEvent *ev )
{
if (ev->type == XKeyPress || ev->type == ButtonPress)
@@ -71,6 +73,9 @@ int main( int argc, char **argv )
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ if (args->isSet( "forcelock" ))
+ trinity_desktop_lock_forced = TRUE;
+
putenv(strdup("SESSION_MANAGER="));
KApplication::disableAutoDcopRegistration(); // not needed