Skip to content

Commit

Permalink
#4396 only preserve the keycode for X11 clients
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 28, 2024
1 parent e7a3a8b commit 1b7a4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/x11/server_keyboard_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def do_get_keycode(self, client_keycode:int, keyname:str, pressed:bool, modifier
return -1, group
if self.raw:
return client_keycode, group
if self.query_struct:
if self.x11_keycodes:
keycode = self.keycode_translation.get((client_keycode, keyname)) or client_keycode
self.kmlog(keyname, "do_get_keycode (%i, %s)=%s (native keymap)", client_keycode, keyname, keycode)
return keycode, group
Expand Down

0 comments on commit 1b7a4ea

Please sign in to comment.