Bug 397690

Summary: Cannot lock screen with Ctrl+Alt+L when desktop context menu is displayed
Product: [Unmaintained] kscreenlocker Reporter: Bob Mahar <bob>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: bshah, kde, trmdi
Priority: NOR    
Version First Reported In: 5.10.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bob Mahar 2018-08-21 02:58:27 UTC
Presumably this is because of the age old X Windows shenanigans of context windows having a lock on the screen semaphore, preventing the screen from being locked.   Given Bug https://bugs.kde.org/show_bug.cgi?id=284357, the desktop context menu probably should not refer to a keyboard shortcut known not to work from a context menu.

To reproduce:

Right clock in desktop area.
Context menu appears with Screnn Lock menu option showing Ctrl+Alt+L shortcut.
On pressing Ctrl+Alt+L, nothing happens, not is an error generated.
Comment 1 David Edmundson 2018-08-21 09:16:41 UTC
>Presumably this is because of the age old X Windows shenanigans of context windows

Not just that, they grab the keyboard preventing global shortcuts.

> should not refer to a keyboard shortcut known not to work from a context menu.

We show it so users then know the shortcut for future. It's a common pattern across menus. I don't think there's anyone who opens a shortcut menu, then halfway switches to using a global shortcut.