Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.2
-
None
-
WM: Sway
GPU: rx 480 8gb
Description
Steps to find bug:
- Get hello Vulkan widget example
- Edit clear alpha color value to less than 1.0
- Set mainWindow attribute Qt::WA_TranslucentBackground
Exact changes:
Line 455 in trianglerender.cpp change to:
VkClearColorValue clearColor = {{ 0, 0, 0, 0.5 }};
Line ~108 in main.cpp add:
mainWindow.setAttribute(Qt::WA_TranslucentBackground);
After this is done the background should be at least semi-transparent.
But on Wayland the background remains completely opaque.
What I found:
- Xorg environment works fine
- Setting QT_QPA_PLATFORM=xcb variable "fixes" the problem
- GLFW-Wayland does not have this issue