glutin: Transparency broken on X11
Apparently since the 0.20 update to glutin (which bumped the major of winit), there have been some issues with transparency on the X11 backend.
The problem seems to boil down to with_transparency(true) acting like with_transparency(false). So there are no crashes, but a fully transparent window is displayed as a black window.
The issue has been reported to Alacritty here: https://github.com/jwilm/alacritty/issues/2254
Other than X11 I haven’t been able to find any significant similarities between the parties for which this works and for whom it doesn’t. Not everyone on X11 is experiencing this issue.
The exact winit commit has not been bisected yet either, though that has already been requested.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 15 (15 by maintainers)
Apparently it looks like this was NOT fixed on all systems.
We need to be checking that the alphaMask returned from XRenderFindVisualFormat is > 0. I’ve put together a small patch for glx only, but it does not yet account for raw windows. I’ll drop a PR once it accounts for those edge cases and has egl support.
Confirmed, I can also repo this. Will look into it next week if I remember.
Turns out I can not read and the latest master does resolve the issue. Sorry for the noise.
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1185 just merged into mesa! The patch should land in the next stable mesa release. Unfortunately, it got merged one day too late to be included in Mesa 19.2.1 >.<
Expect to see this fixed in Mesa 19.2.2, which releases on 2019-10-23!
As an update: currently the extension is being reviewed. https://bugs.freedesktop.org/show_bug.cgi?id=67676
https://termbin.com/oy16 https://termbin.com/wj13
I still need to write the appropriate xorg patch to utilize the new EGL extension otherwise some applications not expecting transparency might get it (although that was not the case on my computer), however, beyond that, users interested in testing this out should be able to apply this patch as is with no negative side effects.
I’ve been working hard at this issue, but I’m not there yet: https://gentz.rocks/posts/adventures-in-mesa-egl-and-transparency/
https://bugs.freedesktop.org/show_bug.cgi?id=67676
No workaround.