Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 4, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 4, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 4, 2025

      Smashing Animations Part 4: Optimising SVGs

      June 4, 2025

      I test AI tools for a living. Here are 3 image generators I actually use and how

      June 4, 2025

      The world’s smallest 65W USB-C charger is my latest travel essential

      June 4, 2025

      This Spotlight alternative for Mac is my secret weapon for AI-powered search

      June 4, 2025

      Tech prophet Mary Meeker just dropped a massive report on AI trends – here’s your TL;DR

      June 4, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025
      Recent

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025

      Simplify Negative Relation Queries with Laravel’s whereDoesntHaveRelation Methods

      June 4, 2025

      Cast Model Properties to a Uri Instance in 12.17

      June 4, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025
      Recent

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025

      Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

      June 4, 2025

      Rilasciata Oracle Linux 9.6: Scopri le Novità e i Miglioramenti nella Sicurezza e nelle Prestazioni

      June 4, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Microsoft finally fixing Chrome & Edge’s white flash in dark mode on Windows 11 & Windows 10

    Microsoft finally fixing Chrome & Edge’s white flash in dark mode on Windows 11 & Windows 10

    January 8, 2025

    Microsoft’s switch to Chromium has benefited Chrome more than anything else. Google Chrome now has better scrolling, improved font management, and even better battery performance on Windows 11, all thanks to Microsoft. Now, Microsoft is making the dark mode work better with Desktop Windows Manager (DWM.exe).

    At the moment, if you use Chrome in dark mode (either when Windows 11 or Windows 10 are set to use a dark theme) and open a new window in Chrome, you might notice a white flash that appears before loading a new window. The temporary white screen shouldn’t appear, but it does because neither Chrome nor Windows knows what to do.

    You’ll also notice the white flash when you launch Chrome and Edge on Windows 11 or Windows 10 when the OS is set to follow the dark theme.

    In the past, Google and Microsoft have worked on improving the dark theme integration in Chrome and Windows, but one place where the integration doesn’t just work yet is the opening of browser windows. This is similar to an issue with File Explorer, where Explorer will flash bang with a white screen before loading.

    The File Explorer issue has been fixed for everyone in Windows 11 23H2, and Microsoft is now patching the same bug in Chrome.

    As browser researcher Leo noticed on X, Microsoft has patched an issue in Chromium to avoid white flash on window creation in dark mode.

    How Microsoft is fixing Chromium dark mode “white flash” issue

    Based on the Chromium code commit reviewed by Windows Latest, it looks like Windows doesn’t know how to handle a newly created window by Chrome. When you create a new window, Windows 11 turns it white, and it remains white until Google Chrome or Microsoft Edes takes over.

    Chrome white flash
    Chrome white flash | Image Courtesy: WindowsLatest.com

    In other words, when Windows 11 is in dark mode, and you switch or create a window in Chrome or Edge, Windows needs to handle that window load phase until the app (Chrome/Edge in this case) starts its own rendering. Unfortunately, Windows is unable to respect the dark mode when it is handling window management.

    Microsoft’s developer Chris Davis, who works with the web team, proposed a solution to cloak the window to hide until a dark background can be shown by Chrome/Edge. This sounds more like a workaround than a proper fix for Windows 11’s Desktop Window Manager (DWM.exe), but it seems to be the best bet for now.

    As noted by Chris Davis, “When a window is first created, DWM will use a default white background colour for the window. This can cause a white flash when first showing the window in dark mode. To avoid this, we cloak the window before showing it for the first time and force a paint of the intended background colour before uncloaking.”

    Windows Latest took a closer look at the Chromium commits, and we noticed that it modifies ui/views/win/hwnd_message_handler.cc.

    Microsoft dev is modifying DWMWA_CLOAK to TRUE to tell Windows to cloak the newly created window (basically hide it). While cloaked, the code uses GDI calls to fill the client area with a dark colour.

    Once it is dark, Microsoft sets DWMWA_CLOAK to FALSE, which makes the window visible again, and by that time, you’ll see a dark colour, not a white flash.

    Some Chromium contributors are not sure if this is a good idea because there could be a race condition where a GPU process finishes drawing the page contents right when the window is being updated to use a dark background. In such a case, Chrome might overwrite the original screen content with dark colours.

    In Microsoft’s tests, they didn’t see this happening, so it’s likely Chrome won’t run into such issues once the patch is rolled out.

    Meanwhile, in future, Google and Microsoft could change how Chromium handles top-level windows. For example, they can use WS_EX_NOREDIRECTIONBITMAP or newer Windows APIs like DWM_SYSTEMBACKDROP_TYPE), which could bypass the white flash.

    But for now, Dave’s cloaking approach is getting implemented, and it means you’ll not see the flash-bang anymore on Windows 11 (and Windows 10).

    These changes will begin rolling out to Chrome and Edge soon.

    The post Microsoft finally fixing Chrome & Edge’s white flash in dark mode on Windows 11 & Windows 10 appeared first on Windows Latest

    Source: Read More 

    windows
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleHow to Create Full-Screen Particle Animations with CSS3 and JS
    Next Article Autonomous businesses will be powered by AI agents

    Related Posts

    Linux

    My Favorite Obsidian Plugins and Their Hidden Settings

    June 4, 2025
    Linux

    Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

    June 4, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    CVE-2025-4692 – ABUP Cloud Update Platform JWT Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    How to Fix ERROR_MP_PROCESSOR_MISMATCH 725 (0x2D5)

    Operating Systems

    Best practices for Amazon RDS for SQL Server with Amazon EBS io2 Block Express volumes up to 64 TiB

    Databases

    Callbacks on Web Components?

    Development

    Highlights

    New open source for testing LLMs, RAGs and Chatbots

    November 18, 2024

    Comments Source: Read More 

    Three ways to create the right data culture in your business

    June 30, 2024

    The Impact of Illustration Styles on Narrative Design

    January 17, 2025

    Navigating B2B Roadmaps: Prioritizing OMS for Enhanced Inventory Visibility

    May 6, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.