Skip to content

Commit

Permalink
don't try to enable alpha if the backing class does not support it
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8625 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 5, 2015
1 parent 96bb0e6 commit e5c1ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gtk_base/gtk_client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def set_alpha(self):
#by default, only RGB (no transparency):
#rgb_formats = list(BACKING_CLASS.RGB_MODES)
self._client_properties["encodings.rgb_formats"] = ["RGB", "RGBX"]
if not self._has_alpha:
if not self._has_alpha or not bc.HAS_ALPHA:
self._client_properties["encoding.transparency"] = False
return
if self._has_alpha and not self.is_realized():
Expand Down

0 comments on commit e5c1ea2

Please sign in to comment.