electron
electron copied to clipboard
[Bug]: In MAS build, the transparent window is red (affects AMD graphics)
Preflight Checklist
- [X] I have read the Contributing Guidelines for this project.
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
24.1.2 (and as far back as 23.0.0)
What operating system are you using?
macOS
Operating System Version
macOS Ventura 13.0
What arch are you using?
x64
Last Known Working Electron version
v22.3.6
Expected Behavior
Transparent windows should be transparent.
Actual Behavior
Transparent windows are red tinged:

Testcase Gist URL
https://gist.github.com/cpoile/97f08192e630291fcc9ea90e7f5b442f
Additional Information
Only appears to happen on Intel macs when using the AMD discreet GPU (turn off Automatic graphics switching in the Battery -> Options System preferences panel).
Thank you kindly!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bump
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bump
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bump
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bump
This is still reproducible in Electron 30.
The other weird thing is that this only affects the Mac App Store build. The darwin build does not have this issue. So the question is simple enough: what else is different between these builds, beyond not having Squirrel?
It's also only affecting Intel Macs. The MAS build tries to avoid Apple internal APIs and I see a few places in the code where the MAS build differs from a regular build that are graphics related. It's probably one of those.
The issue is still present in Electron 31.