input: Add a way to add a keyboard to the seat from an xkb::keymap
#750
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should provide a way to fix things like pop-os/xdg-shell-wrapper#8.
Cosmic's panel is implemented as a compositor that hosts applets as clients. It should just pass through the same keymap that is provided by the host compositor, rather than trying to create one from any configuration.
This could also be useful for the Wayland backend (#676), depending on use case. Then a compositor using the Wayland backend would respect the host compositors keymap settings, but for some testing it may be helpful to do otherwise.
Leaving this as a draft until I've tested it by incorporating it into xdg-shell-wrapper/cosmic-panel, and also making sure it passes through changes to the
group
communicated bywl_keyboard::modifiers
.