Bug 315093

Summary: application loses focus after unlocking the screensaver
Product: [Plasma] kscreenlocker Reporter: Olivier van der Toorn <oliviervdtoorn>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: minor CC: ag+services, alon.barlev, bhush94, bugzilla, mgraesslin, xejakig884
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.5.0

Description Olivier van der Toorn 2013-02-13 21:39:59 UTC
The screensaver seems unable to restore the focus to the application who had focus before the screensaver kicked in.

Reproducible: Always

Steps to Reproduce:
1. Open an application, for example Konsole.
2. Wait for the screensaver to kick in.
3. Unlock the screensaver.
Actual Results:  
There is no application in focus anymore.

Expected Results:  
Focus to be restored to the application who had focus before the screen saver kicked in.

This behavior is observed on Kubuntu 13.04, fully updated at the time of writing.
Comment 1 Thomas Lübking 2013-02-13 21:44:05 UTC
screensaver is override redirect and gets the focus bypassing them - it has to store and restore it.
Comment 2 xejakig884 2013-02-13 22:23:00 UTC
I can confirm this bug.

I see it on a laptop and desktop, both running Kubuntu 13.04 and KDE 4.10.0.
Comment 3 Olivier van der Toorn 2013-02-14 06:25:04 UTC
Also happens when screensaver is activated manually.
Comment 4 Jan-Matthias Braun 2013-05-06 12:49:46 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 Janet 2013-05-21 04:06:38 UTC
There is a lot of "focus losing" in KDE SC 4.10 (on desktop switch, notifications, screensaver, without visible cause) -  maybe something in common?
Comment 6 Martin Flöser 2015-12-15 16:54:26 UTC
We have a fix for that in Plasma 5.5. If you are still able to reproduce (I'm not), please reopen.