From: "Yanchi Tóth" <yanchi.toth@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 64846@debbugs.gnu.org
Subject: bug#64846: Emacs 29 RC on Windows: White background color flashes on startup, before background color from config takes effect on Windows
Date: Thu, 27 Jul 2023 12:25:44 +0200 [thread overview]
Message-ID: <CAOE1KQPPV-4GxfuN5PxpFxxaJXZfP-LZdp+82Yo4aus=+tpCsA@mail.gmail.com> (raw)
In-Reply-To: <87edkuyhom.fsf@yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]
Po,
> what happens if you place:
>
> (setq w32-disable-double-buffering t)
>
> in your early-init.el?
It helps, but doesn't remove the bright flash altogether. Hard to tell, but
I believe it shortens the time of the flash to just one frame. For
comparison: 28.2 doesn't have any perceptible bright flash.
I will have some time over the weekend to look at the code, but I haven't
seen the Emacs codebase yet, so I might be taking more than I can handle.
Can you give me any pointers where to look?
On Wed, Jul 26, 2023 at 2:35 PM Po Lu <luangruo@yahoo.com> wrote:
> Eli Zaretskii <eliz@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?
>
[-- Attachment #2: Type: text/html, Size: 1962 bytes --]
next prev parent reply other threads:[~2023-07-27 10:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 8:56 bug#64846: Emacs 29 RC on Windows: White background color flashes on startup, before background color from config takes effect on Windows Yanchi Tóth
2023-07-25 12:44 ` Eli Zaretskii
2023-07-25 13:32 ` Yanchi Tóth
2023-07-25 14:33 ` Eli Zaretskii
2023-07-26 8:32 ` Yanchi Tóth
2023-07-26 11:20 ` Eli Zaretskii
2023-07-26 12:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-27 10:25 ` Yanchi Tóth [this message]
2023-07-27 12:45 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOE1KQPPV-4GxfuN5PxpFxxaJXZfP-LZdp+82Yo4aus=+tpCsA@mail.gmail.com' \
--to=yanchi.toth@gmail.com \
--cc=64846@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.