def set_alpha(self): ClientWindow.set_alpha(self) rgb_formats = self._client_properties.get("encodings.rgb_formats", []) #gl_window_backing supports BGR(A) too: if "RGBA" in rgb_formats: rgb_formats.append("BGRA") if "RGB" in rgb_formats: rgb_formats.append("BGR")