Skip to content

Commit

Permalink
Regression: restore keyboard debug for non-XUP
Browse files Browse the repository at this point in the history
Commit c9a2039 moved the
keyboard functionality associated with the XKB module used by
XUP to a separate module. This prevented the setting of
xrdp.override_keylayout in the config from working on the
login screen and VNC sessions. This commit restores the
override functionality to non-XUP sessions.
  • Loading branch information
matt335672 committed Dec 23, 2024
1 parent 5a49312 commit 8a0c2ac
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion xrdp/xrdp_wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,19 @@ xrdp_wm_create(struct xrdp_process *owner,
self->log->auto_free = 1;
self->mm = xrdp_mm_create(self);
/* this will use built in keymap or load from file */
get_keymaps(self->session->client_info->keylayout, &(self->keymap));
if (client_info->xrdp_keyboard_overrides.layout > 0 &&
client_info->xrdp_keyboard_overrides.layout != client_info->keylayout)
{
LOG(LOG_LEVEL_INFO, "overrode keylayout %08X with %08X",
client_info->keylayout,
client_info->xrdp_keyboard_overrides.layout);
get_keymaps(client_info->xrdp_keyboard_overrides.layout,
&(self->keymap));
}
else
{
get_keymaps(client_info->keylayout, &(self->keymap));
}
xrdp_wm_set_login_state(self, WMLS_RESET);
self->target_surface = self->screen;
self->current_surface_index = 0xffff; /* screen */
Expand Down

0 comments on commit 8a0c2ac

Please sign in to comment.