Skip to content

Commit

Permalink
avoid damage storms: switch to full frames earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 12, 2025
1 parent 6bc9797 commit 8031ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/server/window/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,9 @@ def do_damage(self, ww: int, wh: int, x: int, y: int, w: int, h: int, options: d
if delayed:
# use existing delayed region:
regions = delayed.regions
if not self.full_frames_only:
if self.full_frames_only or len(regions) >= self.max_small_regions:
delayed.regions = regions = [rectangle(0, 0, ww, wh)]
else:
region = rectangle(x, y, w, h)
add_rectangle(regions, region)
# merge/override options
Expand Down

0 comments on commit 8031ff7

Please sign in to comment.