From d63d31b47cf1b70ccd1f41f0e8cedb728035323e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 24 Oct 2024 18:11:50 +0700 Subject: [PATCH] #4401 mmap encoding is acceptable for tray icons --- xpra/client/gui/client_tray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/client/gui/client_tray.py b/xpra/client/gui/client_tray.py index 7ae7e82ebc..71b442bbbd 100644 --- a/xpra/client/gui/client_tray.py +++ b/xpra/client/gui/client_tray.py @@ -238,7 +238,7 @@ def do_paint_rgb(self, context, encoding: str, rgb_format: str, img_data, if width != render_width or height != render_height: fire_paint_callbacks(callbacks, False, "tray paint must not use scaling") return - if encoding != "rgb": + if encoding not in ("rgb", "mmap"): fire_paint_callbacks(callbacks, False, f"invalid encoding for tray: {encoding!r}") return self.data = (rgb_format, width, height, rowstride, img_data[:], options)