diff --git a/xpra/client/gui/ui_client_base.py b/xpra/client/gui/ui_client_base.py index 7c6510c747..527a45fb46 100644 --- a/xpra/client/gui/ui_client_base.py +++ b/xpra/client/gui/ui_client_base.py @@ -181,7 +181,7 @@ def __init__(self): # pylint: disable=super-init-not-called # state: self._on_handshake: Sequence[tuple[Callable, Sequence[Any]]] | None = [] - self._on_server_setting_changed: dict[str, Sequence[Callable]] = {} + self._on_server_setting_changed: dict[str, Sequence[Callable[[str, Any], None]]] = {} def init(self, opts) -> None: """ initialize variables from configuration """ @@ -580,7 +580,7 @@ def after_handshake(self, cb: Callable, *args) -> None: def _process_server_event(self, packet: PacketType) -> None: log(": ".join(str(x) for x in packet[1:])) - def on_server_setting_changed(self, setting: str, cb: Callable) -> None: + def on_server_setting_changed(self, setting: str, cb: Callable[[str, Any], None]) -> None: self._on_server_setting_changed.setdefault(setting, []).append(cb) def _process_setting_change(self, packet: PacketType) -> None: @@ -606,7 +606,7 @@ def _process_setting_change(self, packet: PacketType) -> None: return log("_process_setting_change: %s=%s", setting, Ellipsizer(value)) # these are too big to log - if setting not in ("xdg-menu", "monitors"): + if setting not in ("xdg-menu", "monitors", "ibus-layouts"): log.info("server setting changed: %s=%s", setting, repr_ellipsized(value)) self.server_setting_changed(setting, value)