Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP update keymap based on keymap from server #11

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Sep 19, 2022

Fix for #8, though due to #10, changes to the selected layout group aren't forwarded from the server.

Requires Smithay/client-toolkit#299 and Smithay/smithay#750.

I believe this results in unregistering the wl_keyboard and creating a new one. Having a way in smithay to alter the existing wl_keyboard may work better.

The above PRs also have soundness issues due to the non-thread-safe ref-counting in xdgcommon, and how smithay/sctk assume they hold the only references.

Fix for #8, though due
to #10, changes to the
selected layout group aren't forwarded from the server.

Requires Smithay/client-toolkit#299 and
Smithay/smithay#750.

I believe this results in unregistering the `wl_keyboard` and creating a
new one. Having a way in smithay to alter the existing `wl_keyboard` may
work better.

The above PRs also have soundness issues due to the non-thread-safe
ref-counting in xdgcommon, and how smithay/sctk assume they
hold the only references.
@ids1024
Copy link
Member Author

ids1024 commented Sep 20, 2022

Oh, I guess "removing" the keyboard here is just sending a change to the seat capabilities, and previously created wl_keyboards should still work? I was imaging the wl_keyboard being a global, but I guess that's not how the protocol works.

So I think that part should be fine, and it's just the mess with libxkbcommon and threads.

@jackpot51 jackpot51 changed the base branch from master_jammy to master December 20, 2022 17:41
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.

1 participant