diff --git a/xpra/server/window/compress.py b/xpra/server/window/compress.py index 8e5f2d6c61..cca97f4bc2 100644 --- a/xpra/server/window/compress.py +++ b/xpra/server/window/compress.py @@ -56,6 +56,7 @@ INITIAL_QUALITY = envint("XPRA_INITIAL_QUALITY", 65) INITIAL_SPEED = envint("XPRA_INITIAL_SPEED", 40) +TEXT_QUALITY = envint("XPRA_TEXT_QUALITY", 100) LOCKED_BATCH_DELAY = envint("XPRA_LOCKED_BATCH_DELAY", 1000) @@ -2016,7 +2017,8 @@ def assign_sq_options(self, options, speed_pct : int=100, quality_pct : int=100) if self._fixed_quality > 0: quality = self._fixed_quality else: - quality = self._current_quality + text_hint = self.content_type.find("text") >= 0 + quality = TEXT_QUALITY if text_hint else self._current_quality if packets_backlog is None: packets_backlog = self.get_packets_backlog() now = monotonic()