Skip to content

Commit

Permalink
actually use the pixel count to choose a full window update
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8313 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 28, 2014
1 parent 8f7813e commit bbd21f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ def send_full_window_update():
pixel_count = sum(rect.width*rect.height for rect in regions)
log("send_delayed_regions: %s regions with %s pixels (coding=%s)", len(regions), pixel_count, coding)
actual_encoding = get_encoding(pixel_count)
if self.must_encode_full_frame(window, actual_encoding):
if pixel_count>=ww*wh or self.must_encode_full_frame(window, actual_encoding):
#use full screen dimensions:
self.process_damage_region(damage_time, window, 0, 0, ww, wh, actual_encoding, options)
return
Expand Down

0 comments on commit bbd21f6

Please sign in to comment.