From 777be6c88f6053411936cb13849a7c0c6b43f897 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 23 Jan 2024 22:43:10 +0700 Subject: [PATCH] force text quality to 100 --- xpra/server/window/compress.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()