4 ms·
>For example, you want to use Ctrl + Shift keys to switch keyboard layouts on release. This is possible in Wayland, it's up to the compositor. >Now guess what
by emersion 8y ago
>For example, you want to use Ctrl + Shift keys to switch keyboard layouts on release.
This is possible in Wayland, it's up to the compositor.
>Now guess what happens if VNC client's machine has a keyboard layout with characters not present in layout on VNC server's machine?
This seems pretty normal to me. Remote keyboards are just like physical keyboards. Just configure VNC's keyboard to use the correct layout.
(BTW I'm not sure I understand what you mean by "Everything is broken")
>Because of the same reason on-screen keyboards on Linux cannot produce characters not present in keyboard layout. Emoji, for example.
I don't know about X11's status on this, however in Wayland on-screen keyboards _can_ send unicode to the compositor via the standard text-input protocol [1].
[1]: https://github.com/wayland-project/wayland-protocols/blob/master/unstable/text-input/text-input-unstable-v3.xml https://github.com/wayland-project/wayland-protocols/blob/ma...
- j16sdiz 8y ago> ... up to the compositor. Is there anything like W3C or WHATWG for Wayland? We had implementation specific extension in HTML, and we all hate that until the browser implentor sat together.
- codedokode 8y ago> This is possible in Wayland, it's up to the compositor. Typically compositor uses libxkbcommon which suffers from the same problems that X server had. > Remote keyboards are just like physical keyboards. Just configure VNC's keyboard to use the correct layout. It is inconvenient and I don't think it would work. There is no such thing as "VNC keyboard". VNC client sends keysyms over the wire, so the VNC server has to convert them back to a key number, switch to necessary layout if there are several of them, turn off modifiers like Shift if necessary. This is too complicated. For example, x11vnc server doesn't support non-latin input correctly. > (BTW I'm not sure I understand what you mean by "Everything is broken") That many VNC servers cannot handle non-latin input correctly. > however in Wayland on-screen keyboards _can_ send unicode to the compositor via the standard text-input protocol This looks like an extension for implementing IME. You can see that there is no key press or key release events. These events are defined in wayland protocol spec [1] and they still use a key number. So you cannot send key press/release events for characters not present in current keyboard layout. [1] https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_keyboard https://wayland.freedesktop.org/docs/html/apa.html#protocol-...