From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Thiago Melo <tmdmelo@gmail.com>
Cc: 64923@debbugs.gnu.org
Subject: bug#64923: 29.1; white background glitch with new graphical frames
Date: Sat, 29 Jul 2023 08:20:47 +0800 [thread overview]
Message-ID: <87zg3fva8w.fsf@yahoo.com> (raw)
In-Reply-To: <CABpoeKg5GU_pHhuStYjP3dsGeZqXeFNecJggkP2wN4wzvL5m9w@mail.gmail.com> (Thiago Melo's message of "Fri, 28 Jul 2023 22:19:12 +0000")
Thiago Melo <tmdmelo@gmail.com> writes:
> Under the conditions specified below, new graphical frames are
> completely white until a redrawing is forced (usually by resizing the
> frame):
>
> Emacs built with:
>
> - No toolkit OR Lucid (--with-x-toolkit=no OR --with-x-toolkit=lucid)
> - Cairo (--with-cairo)
> - Double buffering (--with-xdbe)
>
> Plus:
>
> - Without an X window manager OR using TinyWM
> - No toolkit builds: when scrollbar is disabled before creating the frame
> - Lucid builds: when scrollbar AND menubar are disabled before
> creating the frame
>
> Affects `emacs -Q'. Tested on Debian GNU/Linux 12.1 (Bookworm).
>
> Issue started happening since commit
> e361d0d7e5d3db8575d5d8673012aa4d7448ee54 (Tue Mar 1 20:15:02 2022
> +0800, "Add PropertyChangeMask to the standard event set"). Found via
> bisect.
Perhaps a change to a window property temporarily misleads Emacs into
believing that the frame is iconified or otherwise invisible. Does your
problem remain with the following change to xterm.c?
diff --git a/src/xterm.c b/src/xterm.c
index 61b9d972e57..466b86fe32a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -19396,6 +19396,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
f = x_top_window_to_frame (dpyinfo, event->xproperty.window);
if (f && event->xproperty.atom == dpyinfo->Xatom_net_wm_state
+ && 0
/* This should never happen with embedded windows. */
&& !FRAME_X_EMBEDDED_P (f))
{
@@ -19441,6 +19442,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
}
if (f && event->xproperty.atom == dpyinfo->Xatom_wm_state
+ && 0
&& !FRAME_X_EMBEDDED_P (f) && !FRAME_PARENT_FRAME (f))
/* Handle WM_STATE. We use this to clear the iconified flag
on a frame if it is set.
next prev parent reply other threads:[~2023-07-29 0:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 22:19 bug#64923: 29.1; white background glitch with new graphical frames Thiago Melo
2023-07-29 0:20 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-07-29 10:34 ` Thiago Melo
2023-07-29 11:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-29 22:52 ` Thiago Melo
2023-07-30 2:08 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-30 5:21 ` Eli Zaretskii
2023-07-30 5:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-30 9:23 ` Eli Zaretskii
2023-07-30 9:22 ` Eli Zaretskii
2023-07-30 12:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-30 13:07 ` Thiago Melo
2023-07-31 0:40 ` 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=87zg3fva8w.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=64923@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
--cc=tmdmelo@gmail.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.