cef139 Windows 11 white screen

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cef139 Windows 11 white screen

Postby levili » Fri Sep 12, 2025 2:40 am

Has anyone encountered the following problem? How can I fix it?

In our project, on the Windows 11 system, calling hide() and then show() can sometimes result in a blank screen. This issue has not been encountered on Windows 10. Switching windows using alt+tab or resizing the window will restore the display.

The most common triggering paths are:
1. Pinning the CEF window to the taskbar
2. Completely covering the CEF window with another window
3. Calling hide() and then show()

It can also be easily reproduced in the Standard Distribution cefclient project.
levili
Newbie
 
Posts: 3
Joined: Thu Apr 24, 2025 7:53 am

Re: cef139 Windows 11 white screen

Postby ndesktop » Fri Sep 12, 2025 4:40 pm

Looks like some form of invalidating is needed. I won't say something like InvalidateRect/InvalidateRgn on the host HWND (it might not even work) but it might be a good idea at least to test if this is a fix. Alt-Tab or resize does this.
Running this with Spy++ attached and filtering the messages (WM_PAINT, WM_NCPAINT, WM_SETREDRAW etc.) might reveal what hide/show does not and what alt-tab does.
ndesktop
Master
 
Posts: 953
Joined: Thu Dec 03, 2015 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 97 guests