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 #17 received at 64846 <at> debbugs.gnu.org (full text, mbox):

From: Yanchi Tóth <yanchi.toth <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 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 10:32:54 +0200
[Message part 1 (text/plain, inline)]
Hmmm. I tried adding the early init file with what you suggest, but the
situation stays the same

Note that if I make the frame larger at startup, the bright rectangle stays
pretty much the same size,
which hints at this being related to repainting dirty areas? Maybe when
Windows sends the first WM_ERASEBKGND,
the frame background color is not set yet, so Emacs repaints with white?

I don't think this is a release blocker, and I could investigate this later
myself, if it would help.

On Tue, Jul 25, 2023 at 4:32 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Yanchi Tóth <yanchi.toth <at> gmail.com>
> > Date: Tue, 25 Jul 2023 15:32:33 +0200
> > Cc: 64846 <at> debbugs.gnu.org
> >
> > I managed to reproduce with this fairly minimal configuration:
> >
> > (set-background-color "#191919")
> > (set-foreground-color "burlywood")
> >
> > Because the config is much smaller, the flash of white is much shorter,
> but still noticeable.
>
> Instead of the above, try adding to your early-init file the
> following:
>
>   (add-to-list 'default-frame-alist
>                '(background-color . "#191919")
>                '(foreground-color . "burlywood"))
>
[Message part 2 (text/html, inline)]

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.