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

kbmap not working under wayland #91

Open
mseddon opened this issue Jan 14, 2024 · 7 comments
Open

kbmap not working under wayland #91

mseddon opened this issue Jan 14, 2024 · 7 comments
Labels
feature request New feature or request

Comments

@mseddon
Copy link

mseddon commented Jan 14, 2024

I am trying to support shift / alt / ctrl modifiers under wayland for Blender using wayland (without xwayland). Unfortunately this is not working for me- xev does not acknowledge any key events at all from my spacenavigator device.

Am I correct in thinking this is unsupported at present, and that running xwayland is the right solution in the meantime?

@jtsiomb
Copy link
Contributor

jtsiomb commented Jan 14, 2024

Yes, the key mapping feature sends X events. It only works for X applications and only if spacenavd successfully connects to the X server, so any X authentication issues will prevent it from working too.

I'm marking this as a feature request, but I don't plan on implementing wayland keyboard mapping myself. I'm not at all interested in wayland, I consider it a step backwards, but if anyone else wishes to work on this, I'll gladly accept patches/pull requests about it.

@jtsiomb jtsiomb added the feature request New feature or request label Jan 14, 2024
@adrianinsaval
Copy link

it might be possible to implement this using libei now

@jtsiomb
Copy link
Contributor

jtsiomb commented Nov 19, 2024

Unless I'm misreading the libei readme file, it sounds like the wayland compositor needs to support libei specifically for this to work. It feels like a kludge, and far from a universal solution for implementing "keystrokes on wayland".

Also no external libraries unless absolutely necessary.

@adrianinsaval
Copy link

It's the most universal you can get in Wayland

@blakeblair
Copy link

has anyone picked this up? I'm still holding out hope because blender doesn't seem to like the button numbers as inputs.

@ftk
Copy link

ftk commented Feb 7, 2025

See my example using uinput and libspnav
https://gist.github.com/ftk/0d70e527c05cc7c7d25bd57019a829a9

@jtsiomb
Copy link
Contributor

jtsiomb commented Feb 7, 2025

That's interesting. uinput seems like a viable way to generate fake keypresses on linux independent of the window system. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants