Bug 397690 - Cannot lock screen with Ctrl+Alt+L when desktop context menu is displayed
Summary: Cannot lock screen with Ctrl+Alt+L when desktop context menu is displayed
Status: RESOLVED INTENTIONAL
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: general (show other bugs)
Version: 5.10.3
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-21 02:58 UTC by Bob Mahar
Modified: 2018-08-21 09:16 UTC (History)
3 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 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.