Skip to content

Commit

Permalink
#4401 mmap encoding is acceptable for tray icons
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 24, 2024
1 parent 556cf78 commit d63d31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/client/gui/client_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d63d31b

Please sign in to comment.