[mythtv-commits] [MythTV/mythtv] b6e7e1: Wayland: Fix alpha blending
Mark Kendall
noreply at github.com
Wed Jul 29 15:09:25 UTC 2020
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: b6e7e18a4c209a0dd246c4624db918af0d5152ff
https://github.com/MythTV/mythtv/commit/b6e7e18a4c209a0dd246c4624db918af0d5152ff
Author: Mark Kendall <mark.kendall at gmail.com>
Date: 2020-07-29 (Wed, 29 Jul 2020)
Changed paths:
M mythtv/libs/libmythui/mythdisplay.cpp
Log Message:
-----------
Wayland: Fix alpha blending
- each window in wayland has its own buffer/texture and these are always
composited with alpha blending
- as a result any alpha blended areas of our UI will allow the
underlying window to be visible if the window/surface buffer has a
buffer with alpha
- usually the default surface format does not request a buffer with
alpha but when wayland decorations are enabled, Qt overrides the alpha
depth
- so as a workaround, disable Qt wayland decorations, which we don't
need anyway
- note - this may not be the best solution. Using
wl_surface_set_opaque_region on our surface would allow the compositor
to optimise rendering as it knows it does not need to show anything
hidden by the window. In testing this works but requires linking to
libwayland-client and including Qt private headers (which is far from
ideal)
- refs #13483
More information about the mythtv-commits
mailing list