Bug 334051

Summary: Locker or screen saver can't be started while mouse button is depressed
Product: kscreensaver Reporter: kdebugs
Component: generalAssignee: kscreensaver bugs tracking <kscreensaver-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.11.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kdebugs 2014-04-29 04:52:55 UTC
Obviously for an activity timeout, this is less of a problem (STILL a problem, mind you, since something could accidentally get laid on the mouse.), but I want to be able to have a script periodically lock the session even when not idle.  This bug prevents me from forcing a lock.

Reproducible: Always

Steps to Reproduce:
1. Click and hold a mouse button, e.g. the left one.
2. Simultaneously press Ctrl+Alt+L (or whatever shortcut you have installed.
(alternately, run:
qdbus --literal org.freedesktop.ScreenSaver /ScreenSaver Lock
  or
qdbus --literal org.freedesktop.ScreenSaver /ScreenSaver SetActive bool:True
Actual Results:  
The locker or screensaver fails to start.  If using the last command (above), the output will be "true" instead of "[]".

Expected Results:  
The locker or screen saver should activate.

Observed on Ubuntu 13.10 (KDE 4.11.5), but I'm guessing this is a more widespread issue.  If there's truly no way to programmatically force a session lock, I would consider this a major bug indeed.
Comment 1 Martin Flöser 2015-01-23 13:52:02 UTC

*** This bug has been marked as a duplicate of bug 78871 ***