----- Original Message -----
Hi,
I maintain lockkeys extension for gnome shell. It displays num-lock and
caps-lock states in the panel. It also shows notification if either of
these states change.
I use Keymap's "state-changed" signal:
Gdk.Keymap.get_default().connect('state-changed', ...);
to receive numlock and capslock changes.
It works well in X11. In Wayland however, it works only partially. I
receive state change signals only when XWayland application is focused.
When native wayland application is focused - I get no state change
signals.
It can be reproduced on Fedora 24. I didn't test on Fedora 25.
Is there other similar api that would work on wayland ?
Is there a way to change state "from code" ? I want change f.e. num-
lock state when user clicks with a mouse on a button.
You can't do that in Wayland, that should only be accessible to the compositor.
See:
https://bugzilla.gnome.org/show_bug.cgi?id=771873
https://bugzilla.gnome.org/show_bug.cgi?id=771874
https://bugzilla.gnome.org/show_bug.cgi?id=659243
Cheers