Skip to content

Virtual keyboard grouping fix#5204

Merged
emersion merged 2 commits intoswaywm:masterfrom
any1:virtual-keyboard-grouping-fix
Apr 14, 2020
Merged

Virtual keyboard grouping fix#5204
emersion merged 2 commits intoswaywm:masterfrom
any1:virtual-keyboard-grouping-fix

Conversation

@any1
Copy link
Copy Markdown
Contributor

@any1 any1 commented Apr 10, 2020

No description provided.

@emersion
Copy link
Copy Markdown
Member

@RedSoxFan Do you remember why we don't use libinput_device_get_device_group to group keyboards?

@RedSoxFan
Copy link
Copy Markdown
Member

@RedSoxFan Do you remember why we don't use libinput_device_get_device_group to group keyboards?

I think we wanted something that was that was backend independent. It's been a while. I can check over the weekend. (I'm currently assembling a new computer otherwise I'd check now)

@RedSoxFan
Copy link
Copy Markdown
Member

@emersion I looked into the libinput device groupings. On my systems, the inputs that should be group together are all in separate libinput device groups.

As for this PR, it looks fine to me. The alternative would be to change the wlr_keyboard_group the device is in when the keymap is about to change (as is done for physical keyboards). That should allow the virtual keyboards to be grouped with physical keyboards with the same keymap, but also not effect the keymap of other keyboards.

@emersion
Copy link
Copy Markdown
Member

On my systems, the inputs that should be group together are all in separate libinput device groups.

Ah, that explains it. I wonder if we should ask users to send libinput patches to fix this upstream instead, this would benefit other compositors as well. I've asked whot about this, let's see how it goes.

@emersion
Copy link
Copy Markdown
Member

That should allow the virtual keyboards to be grouped with physical keyboards with the same keymap, but also not effect the keymap of other keyboards.

I don't think this is something we want. If two VNC sessions have the same keymap and one of them decides to change it, it shouldn't affect the other one.

Copy link
Copy Markdown
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM, and @RedSoxFan said it's fine too. Thanks!

@emersion emersion merged commit b18d943 into swaywm:master Apr 14, 2020
@emersion
Copy link
Copy Markdown
Member

@RedSoxFan Can you share a libinput list-devices dump?

@RedSoxFan
Copy link
Copy Markdown
Member

@emersion Here you go: https://gist.github.com/RedSoxFan/3e6cc09f61b179630ccde0db3d2a41ed

It appears that the inputs for the (terrible) keyboard that I have plugged into my desktop are actually registering in a single group today I'm pretty sure they were not the other day...

The inputs on my laptop are not being grouped though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants