softbuffer icon indicating copy to clipboard operation
softbuffer copied to clipboard

Transparency

Open LoganDark opened this issue 3 years ago • 3 comments

Right now, softbuffer seems to completely ignore the alpha channel. It would be nice if this was supported.

LoganDark avatar Jun 14 '22 05:06 LoganDark

A transparency hint would be useful in the Wayland backend, as we could tell the compositor about the window content being opaque (using the Xrgb8888 format) and let the compositor apply some optimizations for rendering.

i509VCB avatar Jan 01 '23 19:01 i509VCB

In addition to a way to set this, it would be good to have an API to test if it's supported. On Wayland RGBA and RGBX should always be, but I think this may not be true on others?

What kind of API would be suitable here? A set_alpha() method? supports_alpha()? Maybe there's a better way to name it.

This becomes a lot more complicated if we wanted to support formats other than RGBA/RGBX.

ids1024 avatar Jan 01 '23 21:01 ids1024