Skip to content

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

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

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

Conversation

@adityaonx

@adityaonx Aditya (adityaonx) commented Apr 1, 2025 •

Copy link
Copy Markdown

Fixes #132339

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

Before

1IssueVid.mp4

After

1IssueFix.mp4

@bpasero

Copy link
Copy Markdown
Contributor

Aditya (@adityaonx) thanks a bunch for getting us a bit closer to solve this puzzle. however I think now we are trading the white flash issue with seeing a normal sized window growing to maximize state on startup, which is also annoying. Given what you found out I would like to take this back to the Electron issue and ask what is going on 🙏

@adityaonx

Copy link
Copy Markdown
Author

Aditya (@adityaonx) thanks a bunch for getting us a bit closer to solve this puzzle. however I think now we are trading the white flash issue with seeing a normal sized window growing to maximize state on startup, which is also annoying. Given what you found out I would like to take this back to the Electron issue and ask what is going on 🙏

Thanks a ton for developing the VS Code.
However, this white flash bug has created inconvenience to some of the people including me, having it while working daily with VS Code.

To come up with this workaround mentioned above, I experimented with some values which deals with electron window handler.

This white flash issue in windows electron apps comes from chromium and a fix is being discussed in the following:
(https://chromium-review.googlesource.com/c/chromium/src/+/6092335?tab=comments)
(https://issues.chromium.org/issues/41241478).

Suggestions from one of chromium dev was to add an acrylic/mica background before loading actual window.
Currently working command line that fixes white flash in Edge Stable release is "--enable-features=RemoveRedirectionBitmap".

From what I understood is if we can display a mica/acrylic background before actually displaying the loaded VS Code can replace this white window.

@kristianka

Kristian Kähkönen (kristianka) commented Apr 13, 2025 •

Copy link
Copy Markdown

Sadly no updates since January in those issue trackers. Could this be considered as a temporary fix until a proper one is made from the Chromium developers? Tired of the white flashbangs on my Windows machine... 😅

@adityaonx

Copy link
Copy Markdown
Author

Sadly no updates since January in those issue trackers. Could this be considered as a temporary fix until a proper one is made from the Chromium developers? Tired of the white flashbangs on my Windows machine... 😅

Well these flashes are everywhere! From Most of Chromium based apps to some Windows Native Apps. The root problem is in the rendering of White page in Windows DWM itself.

@adityaonx

Copy link
Copy Markdown
Author

Sadly no updates since January in those issue trackers. Could this be considered as a temporary fix until a proper one is made from the Chromium developers? Tired of the white flashbangs on my Windows machine... 😅

A workaround to avoid all flashes from chrome to VScode is to use stardock's WindowFX application which will modify DWM and will have custom animations added to transitions and will avoid the white flashes!

@adityaonx

Aditya (adityaonx) commented May 20, 2025 •

Copy link
Copy Markdown
Author

Closed #245208 as
#132339 closed as completed via #249241.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

White flash when opening a new window maximized or fullscreen

4 participants