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
5 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
Merged
PR Number
#52772
Merged At
Aug 16, 2026, 3:30:19 PM
Released In
v42.9.3
Release Date
Aug 18, 2026, 11:00:23 AM
43-x-y
Merged
PR Number
#52607
Merged At
Aug 3, 2026, 9:59:18 AM
Released In
v43.3.0
Release Date
Aug 4, 2026, 11:00:22 AM
44-x-y
Merged
PR Number
#52606
Merged At
Aug 3, 2026, 9:58:46 AM
Released In
v44.0.0-alpha.9
Release Date
Aug 3, 2026, 3:00:17 PM

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