Bug 490587

Summary: Key presses able to be sent through lockscreen. Possibly app specific
Product: [Plasma] plasmashell Reporter: Graeme Merrall <graeme.merrall>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fanzhuyifan
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Graeme Merrall 2024-07-20 23:21:51 UTC
SUMMARY
I'm using KDE to so a lot of scanning of photo negatives using the software Vuescan (www.hamrick.com). One side effect of this software is that when actively running the scanner it steals focus from everything else. For example, clicking in Kterm while scanning will not only not being the window to the front but the scanner software will also steal the focus from the KTerm window when scanning.  Mentioning this for relevance.
Also, this focus stealing only happens when the scanner is running so there's something going on with either linux+hardware or linux+vuescan. I don't know which.

A scan takes around 20 minutes to I leave the computer to do it's thing and the lockscsreen comes on and the display goes to sleep.

Returning to the scanner, I pressed the "Return" key to wake up the computer and show the unlock screen. The scanner immediately started up and commenced a preview scan while the screen was still locked. I can only surmise that pressing the return key was sent through the lock screen to the software.  

My guess is that because the lock screen had started during the scanning process, that had enabled the scanner to steal focus from the lock screen process so that the return key was sent to the scanner software and not kscreenlocker.

I'm not sure how to capture additional debug info on this since it seems to be a pretty specific combination of factors. 

STEPS TO REPRODUCE
1.  Ensure lockscreen/sleep timeouts are on
2.  Perform a scan using scanner and Vuescan software
3. Wait and then press the return key to open unlock prompt

OBSERVED RESULT
Scanner starts scanning

EXPECTED RESULT
Scanner should not start and password prompt appears for unlock

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Neon
(available in About System)
KDE Plasma Version:  6.1.3
KDE Frameworks Version:  6.4.0
Qt Version:  6.7.0

ADDITIONAL INFORMATION
Comment 1 fanzhuyifan 2025-01-24 03:27:42 UTC
Is this on wayland or X11?
Comment 2 Graeme Merrall 2025-01-24 04:08:53 UTC
This is on Wayland

Note that since reporting this bug, the issue has resolved itself via either a KDE update or the app. I'm no longer experiencing the problem.

You can close the issue if you wish as I'm no longer able to capture additional information
Comment 3 fanzhuyifan 2025-01-24 06:47:59 UTC
Thanks for the info! Feel free to reopen if you encounter this again.