Skip to content

Commit

Permalink
#1806: if there is nothing left after removing the exclude region (vi…
Browse files Browse the repository at this point in the history
…deo region) then stop and avoid an error when trying to merge an empty list of rectangles

git-svn-id: https://xpra.org/svn/Xpra/trunk@19020 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 19, 2018
1 parent d0030cb commit 9f28873
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,10 @@ def send_full_window_update():
#better, so replace with merged regions:
regions = merged_rects

if len(regions)==1:
if not regions:
#nothing left after removing the exclude region
return
elif len(regions)==1:
merged = regions[0]
else:
merged = merge_all(regions)
Expand Down

0 comments on commit 9f28873

Please sign in to comment.