Skip to content

DesktopIntegration: Expose caps and num lock state - #2967

Open
garaevdi wants to merge 3 commits into
elementary:mainfrom
garaevdi:expose-caps-and-num-lock
Open

garaevdi wants to merge 3 commits into
elementary:mainfrom
garaevdi:expose-caps-and-num-lock

Conversation

@garaevdi

@garaevdi garaevdi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

On wayland only the window with a keyboard focus can query whether those toggle keys are pressed, which resulted in a broken indication in keyboard indicator and greeter.

While we are at it, also make this class follow modern guidelines and use GObject-style construct method

Inspired by downstream NixOS patch by @amz-x https://github.com/amz-x/nixpkgs/blob/eab6fd0d94ee2510caf5e146ef319c8d4360371e/pkgs/desktops/pantheon/desktop/wingpanel/feature-lock-state-interface.patch

@leolost2605 leolost2605 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nitpicks.

I think this makes sense for the wingpanel but I'm not sure if it's needed in greeter. I think there (and elsewhere we need a password entry, e.g. polkit) it's enough to have the state up to date when it's focused. But maybe @elementary/ux has opinions here :)

Comment thread src/Misc/DesktopIntegration.vala Resolved
Comment thread src/Misc/DesktopIntegration.vala Resolved
Comment thread src/Misc/DesktopIntegration.vala Resolved
@garaevdi
garaevdi force-pushed the expose-caps-and-num-lock branch from 5177e18 to 354ea0c Compare November 7, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants