Bug 331761

Summary: lock screen: can't start a new session after playing around with buttons
Product: kscreensaver Reporter: Max Harmathy <harmathy>
Component: locker-qmlAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: major CC: debfx-kde
Priority: NOR    
Version: 4.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.12
Attachments: unlock button slipped under the switch user button

Description Max Harmathy 2014-03-05 11:33:17 UTC
After playing around with the buttons on a locked system, it bcomes impossible to start a new session. The "switch user" button looses its function and in some cases slips under the "unlock" botton or even disappears completely.

As a result only the person who locked the system can unlock it again. No new session can be started.

Reproducible: Always

Steps to Reproduce:
1. lock a session
2. press "switch user"
3. press "cancel"
4. press "unlock"
Actual Results:  
The  "switch user" button
 * looses its functionality 
 * somtimes slips under the "unlock" botton
 * somtimes disappears completely

Expected Results:  
The  "switch user" button
* keeps its functionality 
* stays in its position

This bug is always reproducable on an up-to-date Arch Linux (KDE 4.12.2) and Ubuntu precise with kubuntu-backports (KDE 4.12.0)
Comment 1 Max Harmathy 2014-03-05 11:45:11 UTC
Created attachment 85419 [details]
unlock button slipped under the switch user button
Comment 2 Felix Geyer 2014-04-12 15:49:56 UTC
I've posted a patch that fixes this bug:
https://git.reviewboard.kde.org/r/117499/
Comment 3 Felix Geyer 2014-09-02 18:49:38 UTC
Git commit 3341db4430026914da4c6b5f90c1ef6920bae9d1 by Felix Geyer.
Committed on 02/09/2014 at 16:36.
Pushed by fgeyer into branch 'KDE/4.11'.

Fix the screen locker to be able to show the user switch dialog multiple times.

The user switching dialog from the screen locker was destroyed when the
cancel button was pressed. As a result you coudn't open it again.

The screen locker uses a PlasmaComponents.PageStack to show the password input
and user switching dialogs.
When a dialog is popped from the stack it is destroyed by PageStack.

Fix this by turning userSessionsUI into a Component so it is automatically
created.

This work has been sponsored by the City of Munich's LiMux project.

REVIEW: 117499
FIXED-IN: 4.11.12

M  +17   -10   ksmserver/screenlocker/greeter/themes/org.kde.passworddialog/contents/ui/main.qml

http://commits.kde.org/kde-workspace/3341db4430026914da4c6b5f90c1ef6920bae9d1