Bug 458848

Summary: Lock screen timer ignores pen input / screen is locked after writing with stylus and giving no other input for 5 minutes.
Product: [Frameworks and Libraries] frameworks-kidletime Reporter: Firlaev-Hans <firlaevhanskde.upstream314>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bshah, nate
Priority: NOR    
Version First Reported In: 5.97.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Firlaev-Hans 2022-09-07 18:21:18 UTC
SUMMARY
I was writing something in Xournal++ with my stylus on my 2in1 laptop. While using the stylus, touchscreen input is rightfully ignored (so my hand resting on the screen does not count as touch input).
When I didn't pan around or anything using the touchscreen for a little while, thus giving no other input besides the stylus, the screen locker suddenly came on.
The five-second-rule for unlocking without a password also only worked when I touched the screen and not when tapping it with the stylus.
This has happened twice today and it's getting a bit annoying.

STEPS TO REPRODUCE
1. Be on a 2in1 with a stylus (a wacom tablet may work too)
2. (Optional, but recommended for testing): Set the lock screen timeout to the lowest possible value (1 minute)
3. Just use the stylus for a minute without giving any other input (i. e. don't touch the screen (with fingers), keyboard or mouse)
(4. When the lock screen appears, tap it with the stylus, then with your fingers, within five seconds)

OBSERVED RESULT
The lock screen appears despite actively using the computer with a stylus. Once it appears, using the stylus also won't unlock it within the short no-password-period.

EXPECTED RESULT
Stylus input should be considered input by kscreenlocker, just like keyboard, mouse and touchscreen.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.6-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
System Version: Lenovo IdeaPad C340-14API