Skip to content

Commit

Permalink
Fix --keyboard-sync command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
unisons authored and totaam committed Aug 31, 2024
1 parent afacb05 commit 4823b24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpra/server/keyboard_config_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from typing import Dict, Tuple, Any

from xpra.util.objects import typedict


class KeyboardConfigBase:
""" Base class representing the keyboard configuration for a server.
Expand All @@ -29,7 +31,8 @@ def get_info(self) -> Dict[str,Any]:

def parse_options(self, props) -> int:
oldsync = self.sync
self.sync = props.boolget("sync", True)
keymap_dict = typedict(props.dictget("keymap") or {})
self.sync = keymap_dict.boolget("sync", True)
return int(oldsync != self.sync)

def get_hash(self) -> bytes:
Expand Down

0 comments on commit 4823b24

Please sign in to comment.