electron: [Bug]: In MAS build, the transparent window is red (affects AMD graphics)

Preflight Checklist

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: image

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!

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 1
  • Comments: 17 (1 by maintainers)

Most upvoted comments

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.