all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thiago Melo <tmdmelo@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: Martin Rudalics <rudalics@gmx.at>, Eli Zaretskii <eliz@gnu.org>,
	64923@debbugs.gnu.org
Subject: bug#64923: 29.1; white background glitch with new graphical frames
Date: Sun, 30 Jul 2023 13:07:42 +0000	[thread overview]
Message-ID: <CABpoeKhiRWNNixCzFL5gv420zeHS7HqGjs8XG2EPeajM5dG-6w@mail.gmail.com> (raw)
In-Reply-To: <87h6pmup5r.fsf@yahoo.com>

On Sun, Jul 30, 2023 at 2:08 AM Po Lu <luangruo@yahoo.com> wrote:
> Does this fix both your problems?
>
> diff --git a/src/xfns.c b/src/xfns.c
> index 55bcfb8e20e..222e24f1326 100644
> --- a/src/xfns.c
> +++ b/src/xfns.c
> @@ -5393,6 +5393,17 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame,
>    gui_default_parameter (f, parms, Qfullscreen, Qnil,
>                           "fullscreen", "Fullscreen", RES_TYPE_SYMBOL);
>
> +#ifdef USE_CAIRO
> +  /* Set the initial size of the Cairo surface to the frame's current
> +     width and height.  If the window manager doesn't resize the new
> +     frame after it's first mapped, Emacs will create a surface with
> +     empty dimensions in response to to the initial exposure event,
> +     which will persist until the next time it's resized.
> +     (bug#64923) */
> +  x_cr_update_surface_desired_size (f, FRAME_PIXEL_WIDTH (f),
> +                                   FRAME_PIXEL_HEIGHT (f));
> +#endif /* USE_CAIRO */
> +
>    /* Make the window appear on the frame and enable display, unless
>       the caller says not to.  However, with explicit parent, Emacs
>       cannot control visibility, so don't try.  */

Yes, this patch fixes both issues.  Very insightful, Po Lu, thanks.





  parent reply	other threads:[~2023-07-30 13:07 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
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 [this message]
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=CABpoeKhiRWNNixCzFL5gv420zeHS7HqGjs8XG2EPeajM5dG-6w@mail.gmail.com \
    --to=tmdmelo@gmail.com \
    --cc=64923@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=rudalics@gmx.at \
    /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.