After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788159 - Allow global modifiers state tracking in Wayland
Allow global modifiers state tracking in Wayland
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-25 22:10 UTC by franglais125
Modified: 2021-07-05 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description franglais125 2017-09-25 22:10:13 UTC
In a Wayland session, we can set shortcuts to specific actions. For instance, Super+key can be used to perform various actions through extensions.

I don't know how difficult this would be to implement, but it would be useful to also have access to the modifiers' state. I.e.: perform a specific action when long pressing the Super key alone.

Here are two specific examples where this is useful:
- Dash-to-dock, to show overlay numbers for each application (and then trigger with Super+num)
- Modifier state extension: show on the panel the state of NumLock, CapsLock etc. This is particularly handy for keyboards that lack LEDs indicating the state.

I understand that we don't want to give access to the full keyboard, for security reasons. But, would it be reasonable to make an exception for modifiers alone?
Comment 1 Giovanni Campagna 2017-09-25 23:39:06 UTC
It's worth saying that both examples are of gnome-shell extensions, therefore they have privileged access to internal Mutter API, and can already (with some effort) track modifier state.
There is no need for wayland protocols for shell extensions.
Comment 2 franglais125 2017-09-25 23:45:47 UTC
Ah, well, that would be enough I guess!

In that case, it's more my ignorance on how to do it than gnome-shell lacking functionality. I'll look into it.

But, any pointers while we are at it?
Comment 3 GNOME Infrastructure Team 2021-07-05 14:38:19 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.