diff --git a/xpra/client/gui/window_backing_base.py b/xpra/client/gui/window_backing_base.py index 603c5011ec..0133cf9882 100644 --- a/xpra/client/gui/window_backing_base.py +++ b/xpra/client/gui/window_backing_base.py @@ -11,7 +11,6 @@ from typing import Any from collections.abc import Callable, Iterable, Sequence -from xpra.net.mmap import mmap_read from xpra.net import compression from xpra.os_util import gi_import from xpra.util.objects import typedict @@ -852,6 +851,7 @@ def do_video_paint(self, coding: str, img, x: int, y: int, enc_width: int, enc_h def paint_mmap(self, img_data, x: int, y: int, width: int, height: int, rowstride: int, options: typedict, callbacks: PaintCallbacks) -> None: assert self.mmap_enabled + from xpra.net.mmap import mmap_read data, free_cb = mmap_read(self.mmap, *img_data) callbacks.append(free_cb) rgb_format = options.strget("rgb_format", "RGB")