Skip to content

Commit

Permalink
#1301: convert rectangles to tuples so they can be rencoded
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13642 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 10, 2016
1 parent 0a422f4 commit 94b957f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/server/window/video_subregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,14 @@ def get_info(self):
"non-max-wait" : self.non_max_wait,
"in-out" : self.inout,
"score" : self.score,
"scores" : self.last_scores,
"fps" : self.fps,
"damaged" : self.damaged,
"exclusion-zones" : [(r.x, r.y, r.width, r.height) for r in self.exclusion_zones]
})
ls = self.last_scores
if ls:
#convert rectangles into tuples:
info["scores"] = dict((r.get_geometry(), score) for r,score in ls.items())
rr = list(self.refresh_regions)
if rr:
for i, r in enumerate(rr):
Expand Down

0 comments on commit 94b957f

Please sign in to comment.