summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorSabrehull <124904810+Sabrehull@users.noreply.github.com>2023-03-29 15:18:31 +0200
committerGitHub <noreply@github.com>2023-03-29 15:18:31 +0200
commitd4b746626659d6e29c54da57b822735d15ab14c0 (patch)
tree146318f5d5f605d4ab3aaeae797ef41504299620 /platform/linuxbsd
parent23394bebed07e172f77601baedbd78fd4f423694 (diff)
downloadredot-engine-d4b746626659d6e29c54da57b822735d15ab14c0.tar.gz
[X11] Fix layout bug in `keyboard_get_keycode_from_physical`
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/x11/display_server_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp
index 8343370533..4c5d9552e6 100644
--- a/platform/linuxbsd/x11/display_server_x11.cpp
+++ b/platform/linuxbsd/x11/display_server_x11.cpp
@@ -2848,7 +2848,7 @@ Key DisplayServerX11::keyboard_get_keycode_from_physical(Key p_keycode) const {
Key modifiers = p_keycode & KeyModifierMask::MODIFIER_MASK;
Key keycode_no_mod = p_keycode & KeyModifierMask::CODE_MASK;
unsigned int xkeycode = KeyMappingX11::get_xlibcode(keycode_no_mod);
- KeySym xkeysym = XkbKeycodeToKeysym(x11_display, xkeycode, 0, 0);
+ KeySym xkeysym = XkbKeycodeToKeysym(x11_display, xkeycode, keyboard_get_current_layout(), 0);
if (is_ascii_lower_case(xkeysym)) {
xkeysym -= ('a' - 'A');
}