Skip to content

Commit

Permalink
temporarily disable video region when we do a full_quality_refresh
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12741 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 4, 2016
1 parent 0643c0f commit 9286b68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ def full_quality_refresh(self, window, damage_options={}):
else:
#keep the region, but cancel the refresh:
self.video_subregion.cancel_refresh_timer()
#refresh the whole window in one go:
damage_options["novideo"] = True
WindowSource.full_quality_refresh(self, window, damage_options)


Expand Down Expand Up @@ -544,6 +546,11 @@ def send_nonvideo(regions=regions, encoding=coding, exclude_region=None, get_bes
#keep current encoding selection function
return send_nonvideo(get_best_encoding=self.get_best_encoding)

if options.get("novideo"):
sublog("video disabled in options")
#keep current encoding selection function
return send_nonvideo()

vr = self.video_subregion.rectangle
if not vr:
sublog("no video region, we may use the video encoder for something else")
Expand Down

0 comments on commit 9286b68

Please sign in to comment.