Repository navigation
fix: remove shadow artifacts that appear when multiple windows are created on Linux - #52584
Merged
deepak1556 merged 1 commit intoAug 3, 2026
Merged
Conversation
deepak1556
approved these changes
Aug 2, 2026
codebytere
approved these changes
Aug 3, 2026
|
Release Notes Persisted
|
Contributor
|
I was unable to backport this PR to "42-x-y" cleanly; |
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #52606 |
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #52607 |
Contributor
mitchchn
added a commit
to mitchchn/electron
that referenced
this pull request
Aug 13, 2026
…eated on Linux (electron#52584) fix: remove shadow artifact with multiple windows on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
hasShadowdoes 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
npm testpassesRelease Notes
Notes: Fixed a graphical glitch on Linux where thin borders appeared past the drop shadows on frameless windows when multiple windows were created.