Bug 459594 - desktop grid prevents lock screen activation
Summary: desktop grid prevents lock screen activation
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: effects-desktop-grid (show other bugs)
Version: 5.24.6
Platform: Gentoo Packages Linux
: NOR grave
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-24 10:18 UTC by Erik Quaeghebeur
Modified: 2022-09-27 14:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2022-09-24 10:18:08 UTC
SUMMARY
When the desktop grid effect is active, the lock screen does not activate after the normal timeout and upon laptop lid close the configured suspend action is not activated. This means that when the desktop grid effect is (unintendedly) active, I run a security risk and there is also a risk of hardware damage (true story: sliding mouse on train activates desktop grid without me knowing, I close the laptop lid to get off, put the laptop in the sleeve and then it just starts heating up; scary as hell when two hours later you notice the laptop is very hot and there is a black screen).

STEPS TO REPRODUCE
1. activate desktop grid
2. wait for lock screen timeout or close laptop lid

OBSERVED RESULT
computer stays on in desktop grid

EXPECTED RESULT
computer goes to lock screen or suspends

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Comment 1 veggero 2022-09-24 13:05:44 UTC
Cannot reproduce by turning on desktop grid (via touchpad gesture) and closing the laptop lid on any of my laptops
Comment 2 Erik Quaeghebeur 2022-09-24 13:30:20 UTC
(In reply to veggero from comment #1)
> Cannot reproduce by turning on desktop grid (via touchpad gesture) and
> closing the laptop lid on any of my laptops

Hmm, I'll test that again. 

What about the lock screen not appearing?
Comment 3 Erik Quaeghebeur 2022-09-24 15:15:39 UTC
(In reply to Erik Quaeghebeur from comment #2)
> (In reply to veggero from comment #1)
> > Cannot reproduce by turning on desktop grid (via touchpad gesture) and
> > closing the laptop lid on any of my laptops
> 
> Hmm, I'll test that again.

I can't reproduce it again either. Either this was fixed recently, or there is another reason for the non-suspending behavior.
The lock screen activation not working is easy to reproduce for me.
Comment 4 Nate Graham 2022-09-26 18:58:20 UTC
Was this happening on Wayland or X11?
Comment 5 Erik Quaeghebeur 2022-09-26 19:36:21 UTC
(In reply to Nate Graham from comment #4)
> Was this happening on Wayland or X11?
X11.
Comment 6 Nate Graham 2022-09-27 14:32:18 UTC
Then I'm afraid it's unfixable due to the way input handling works on X11; the effect has to grab all input, so it blocks the screen locker from activating. The same thing happens if you simply open any context menu.

This is one of the issues that Wayland was created to fix, and it is already fixed on Wayland.