-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Fix White flash issue in window.ts (#132339) #245208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@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. 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: Suggestions from one of chromium dev was to add an acrylic/mica background before loading actual window. 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. |
|
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. |
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! |
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