From 564f6687eb83043acdfaeafa9bdfe70b9b4e5301 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Mon, 20 Oct 2025 19:31:16 +0200 Subject: [PATCH] backend-rdp: Add keyboard mapping for alternate Dvorak layouts This changeset adds three variants of the U.S. Dvorak layout to the table that is used to map a keyboard ID in the RDP backend to an Xkb configuration. This makes it possible to have these variants propagated seamlessly from an RDP client into the Wayland compositor. As the backend-rdp module requires at least version 2.3.0 of the FreeRDP library to build, the symbols for these variants is already present in include/freerdp/locale/keyboard.h, included by rdp.h here, and in libfreerdp/locale/xkb_layout_ids.c which translate the selected layout in Xkb into the keyboard ID sent over the wire for the RDP protocol. Signed-off-by: Roland Kaufmann --- libweston/backend-rdp/rdp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/backend-rdp/rdp.c b/libweston/backend-rdp/rdp.c index fecc54e22..4b16119d2 100644 --- a/libweston/backend-rdp/rdp.c +++ b/libweston/backend-rdp/rdp.c @@ -1022,6 +1022,9 @@ struct rdp_to_xkb_keyboard_layout rdp_keyboards[] = { {KBD_IRISH, 0, 0}, {KBD_BOSNIAN_CYRILLIC, "ba", "us"}, {KBD_UNITED_STATES_DVORAK, "us", "dvorak"}, + {KBD_UNITED_STATES_DVORAK_FOR_LEFT_HAND, "us", "dvorak-l"}, + {KBD_UNITED_STATES_DVORAK_FOR_RIGHT_HAND, "us", "dvorak-r"}, + {KBD_UNITED_STATES_DVORAK_PROGRAMMER, "us", "dvp"}, {KBD_PORTUGUESE_BRAZILIAN_ABNT2, "br", "abnt2"}, {KBD_CANADIAN_MULTILINGUAL_STANDARD, "ca", "multix"}, {KBD_GAELIC, "ie", "CloGaelach"},