Skip to content

Commit

Permalink
only remove alpha modes from rgb_formats if we don't handle transpare…
Browse files Browse the repository at this point in the history
…ncy!

git-svn-id: https://xpra.org/svn/Xpra/trunk@5630 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 28, 2014
1 parent e9bf802 commit 121e3f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/xpra/server/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,11 @@ def set_client_properties(self, properties):
self.supports_transparency = HAS_ALPHA and properties.get("encoding.transparency", self.supports_transparency)
self.encodings = properties.get("encodings", self.encodings)
self.core_encodings = properties.get("encodings.core", self.core_encodings)
#unless the client tells us it does support alpha, assume it does not:
self.rgb_formats = properties.get("encodings.rgb_formats", [x for x in self.rgb_formats if x.find("A")<0])
rgb_formats = properties.get("encodings.rgb_formats", self.rgb_formats)
if not self.supports_transparency:
#remove rgb formats with alpha
rgb_formats = [x for x in rgb_formats if x.find("A")<0]
self.rgb_formats = rgb_formats
log("set_client_properties: window rgb_formats=%s", self.rgb_formats)


Expand Down

0 comments on commit 121e3f6

Please sign in to comment.