From d2a8165bb69566284bf118713042843348652fb9 Mon Sep 17 00:00:00 2001 From: Hideyuki Nagase Date: Wed, 27 Apr 2022 14:16:06 -0500 Subject: [PATCH] rdp: Add Persian keyboard map Co-authored-by: Steve Pronovost Co-authored-by: Brenton DeGeer Signed-off-by: Hideyuki Nagase Signed-off-by: Steve Pronovost Signed-off-by: Brenton DeGeer --- libweston/backend-rdp/rdp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libweston/backend-rdp/rdp.c b/libweston/backend-rdp/rdp.c index 3067ab90..edf154c6 100644 --- a/libweston/backend-rdp/rdp.c +++ b/libweston/backend-rdp/rdp.c @@ -42,6 +42,11 @@ #include #include "pixman-renderer.h" +/* This can be removed when we bump FreeRDP dependency past 3.0.0 in the future */ +#ifndef KBD_PERSIAN +#define KBD_PERSIAN 0x50429 +#endif + static void rdp_peer_refresh_rfx(pixman_region32_t *damage, pixman_image_t *image, freerdp_peer *peer) { @@ -754,6 +759,7 @@ struct rdp_to_xkb_keyboard_layout rdp_keyboards[] = { {KBD_LATVIAN, "lv", 0}, {KBD_LITHUANIAN_IBM, "lt", "ibm"}, {KBD_FARSI, "af", 0}, + {KBD_PERSIAN, "af", "basic"}, {KBD_VIETNAMESE, "vn", 0}, {KBD_ARMENIAN_EASTERN, "am", 0}, {KBD_AZERI_LATIN, 0, 0},