On Mon May 12 10:23:02 2025 +0000, Rémi Bernon wrote:
I haven't looked into detail but this doesn't seem to work for whole window opacity (set with `SetLayeredWindowAttributes( hwnd, 0, 255 * 70 / 100, LWA_ALPHA )`) or `UpdateLayeredWindow` per-pixel alpha either. There's maybe something to do with `window_surface->alpha_mask != 0`, which also indicates per-pixel alpha, and should probably trigger usage of ARGB, but that doesn't seem to be enough.
Hi @rbernon, indeed this MR doesn't support layered windows, it is just targeting "shaped" windows (i.e., the ones that end up with non-NULL `shape_bits` at the driver level). Perhaps I should amend the title to leave out the "transparent" part to make this clearer?
My current (very) WIP efforts to support layered windows (on top of this branch) are: https://gitlab.winehq.org/afrantzis/wine/-/commits/wip/wayland-window-shape-...