Skip to content

Commit

Permalink
#2560 only set the layout group if the value is provided (>=0)
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@25061 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 23, 2020
1 parent e8a6614 commit a1766ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/server/mixins/input_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def _process_key_action(self, proto, packet):
keyname = bytestostr(keyname)
modifiers = tuple(bytestostr(x) for x in modifiers)
self.set_ui_driver(ss)
self.set_keyboard_layout_group(group)
if group>=0:
self.set_keyboard_layout_group(group)
keycode = self.get_keycode(ss, client_keycode, keyname, pressed, modifiers, group)
keylog("process_key_action(%s) server keycode=%s", packet, keycode)
#currently unused: (group, is_modifier) = packet[8:10]
Expand Down

0 comments on commit a1766ce

Please sign in to comment.