Skip to content

Fix White flash issue in window.ts (#132339) - #281765

Closed
Aditya (adityaonx) wants to merge 9 commits into
microsoft:mainfrom
adityaonx:main
Closed

Aditya (adityaonx) wants to merge 9 commits into
microsoft:mainfrom
adityaonx:main

Conversation

@adityaonx

Copy link
Copy Markdown

Fixes #132339
I have to reopen this PR as the fix was marked incorrectly by #249241 (comment)

I modified this line, so the white flash won't occur when opening VS Code in maximized window happening in Windows OS.

Previous code: Line 140
Updated code: Line 142

Issue
Before

428930115-7acb36cc-0bed-4812-9846-beb498fd2fd8.mp4

After
Issue-Fix

428930203-3eb5e483-2678-42bf-9342-052cabbb2731.mp4

I know that it isn't a proper one-shot fix! But this mitigate the Eye Burning White Flash every-time someone opens it on Windows OS!

@vs-code-engineering

vs-code-engineering Bot commented Dec 7, 2025 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Pasero (@bpasero)

Matched files:

  • src/vs/platform/windows/electron-main/windows.ts

@adityaonx

Copy link
Copy Markdown
Author

@deepak1556

Copy link
Copy Markdown
Collaborator

As mentioned before we are just trading one bug for another #245208 (comment)

With regards to #245208 (comment) the RemoveRedirectionBitmap feature is enabled by default in our latest insiders https://code.visualstudio.com/insiders and I can repro the issue with it. Requires a followup in the runtime.

@adityaonx

Copy link
Copy Markdown
Author

Robo (@deepak1556) but this does solve the major concern of having the white flash which a much more bigger issue right now than a ultimate fix. Until we have a proper fix, this mitigation is better for temporary fix. Don't you think it will save many from white flashes everytime?

@deepak1556

Copy link
Copy Markdown
Collaborator

I am not suggesting one bug is reasonable than other, if you have workaround proposal that keeps the mitigation for #245208 (comment) and also address the white flash, happy to review it. Otherwise, all I am saying is there is a concrete repro for the runtime electron/electron#35362 and would be good to spend some cycles pursuing a fix based on https://chromium-review.googlesource.com/c/chromium/src/+/6092335

@adityaonx

Copy link
Copy Markdown
Author

Robo (@deepak1556),
Although we have a dark window instead of white but it's way better than the white flash. That's why for now I recommend merging this workaround immediately.
The current "flashbang" behavior upon opening VS Code is a serious accessibility and user experience issue causing eye strain. This PR provides a major, essential temporary fix that will prevent this disruption for most users.
Given the time needed for a proper, permanent solution, merging this now offers crucial and immediate user relief. We can easily revert this when came up with the final fix.

VID-20251211-WA0005.mp4

Please approve this merge to secure user comfort for now because in Open-source community and forums I got user concerns and major stress with this long standing flashing issue.

@hediet Henning Dieterichs (hediet) removed their assignment Dec 11, 2025
@adityaonx

Copy link
Copy Markdown
Author

Robo (@deepak1556) Benjamin Pasero (@bpasero) please review and merge this PR as early fix to mitigate this ongoing issue of the White Flash until we work for the ultimate fix. It's been a long standing issue which is making people irritated as it happens to everyone using Windows OS Full-screen in dark mode. This PR will atleast will give relief to our eyes. We are waiting for a proper fix from a long time but until that it would be nice to consider this one as of now.

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jan 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

White flash when opening a new window maximized or fullscreen

3 participants