mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
The compositor composed every surface with a blit, which replaces what is under it. gamescope's Wayland backend hands its overlay and notification planes to the host as full-size translucent subsurfaces, so a Steam toast, the Quick Access menu or Deck mode's performance overlay blacked out what was beneath it. Surfaces whose buffer has alpha and that are not declared opaque now go through an alpha pass (premultiplied source-over); everything else, and any image the driver cannot sample, keeps the blit. wl_surface.set_opaque_region is honoured, and only for programs that declare opaque regions at all, so Wine windows with a meaningless alpha channel are drawn as before. On the SurfaceControl path a translucent plane is never promoted to the game layer, and the overlay layer is marked translucent when its plane is. From WinNative (maxjivi05, feature/wayland-gamescope 69218fc; GPL-3.0), with the SurfaceControl layer handling added.