Tracking num-lock state on wayland

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Cheers,

Kazimieras Vaina
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux