GNU bug report logs - #64846
Emacs 29 RC on Windows: White background color flashes on startup, before background color from config takes effect on Windows

Previous Next

Package: emacs;

Reported by: Yanchi Tóth <yanchi.toth <at> gmail.com>

Date: Tue, 25 Jul 2023 10:21:01 UTC

Severity: normal

Full log


Message #23 received at 64846 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Yanchi Tóth <yanchi.toth <at> gmail.com>, 64846 <at> debbugs.gnu.org
Subject: Re: bug#64846: Emacs 29 RC on Windows: White background color
 flashes on startup, before background color from config takes effect on
 Windows
Date: Wed, 26 Jul 2023 20:35:05 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Maybe.  I don't know enough about the low-level details of the Emacs
> display on Windows to tell.

Could this be related to the new MS-Windows double buffering code?

When WM_ERASEBKGND arrives and double buffering is enabled, Emacs simply
copies the back buffer contents to the front buffer HWND.  Perhaps this
bug is a result of the copy transpiring in between the creation of the
back buffer, and when redisplay first clears the frame with its
background color.  In that case, the solution is for the back buffer to
always be filled with the frame background color after every time it is
created, instead of whichever color CreateCompatibleBitmap opts to fill
it with by default.

Yachani, what happens if you place:

  (setq w32-disable-double-buffering t)

in your early-init.el?




This bug report was last modified 1 year and 331 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.