mitchchn

#52584: fix: remove shadow artifacts that appear when multiple windows are created on Linux

Merged
Created: Aug 1, 2026, 5:00:35 PM
Merged: Aug 3, 2026, 3:32:12 AM
4 comments
Target: main

Description of Change

Resolves #51456.

Prevents Aura from applying its own drop shadows to windows, since modern versions of Electron and Chrome draw shadows directly on the frame or with DWM.

The Aura shadow manager was vestigial in Electron. All it was doing was producing subtle graphical glitches for additional windows created after first, due to a race where the controller only fully initialized after the first window was created.

This change applies to both Linux and Windows. At first I was confused about the impact on Windows, because there is no other code left in Electron to control shadows on the platform. On further investigation I discovered that hasShadow does not function on Windows already, and it seems it has not worked for a long time if ever (I tested back to Electron 37). So I thought it would be best to remove the dead code and look into a solution for Windows separately: #52583.

Checklist

Release Notes

Notes: Fixed a graphical glitch on Linux where thin borders appeared past the drop shadows on frameless windows when multiple windows were created.

Backports

42-x-y
Pending
Waiting for a manual backport
43-x-y
In-flight
PR Number
#52607
Waiting to be merged
44-x-y
In-flight
PR Number
#52606
Waiting to be merged

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron