On Tue Feb 4 17:50:58 2025 +0000, Rémi Bernon wrote:
I was progressing toward getting rid of that `use_alpha` flag and I think it could even be dropped already, it's not very useful anymore as most of the related logic has been moved to win32u. Every layered window (and that includes systray windows) has an alpha channel in the window surface. What may be different then is how this alpha channel is being used when the pixels are sent to X(Render), they may or may not be used depending on the available visuals, and we should prefer using alpha when possible, but otherwise it's just getting ignored. I've made a small tweak to the logic, to hopefully make it less misleading, checking `if (fmt->alphaMask && visual->class != TrueColor) return FALSE;` instead (and an additional check to avoid selecting alpha for the default visual regardless if it is TrueColor).
Eh, but TrueColor is the common visual class both for argb and default visual?