all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Andy Stewart <lazycat.manatee@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs pgtk branch make-frame-visible/make-frame-invisible slower than Emacs X11 branch
Date: Sun, 16 Oct 2022 08:32:13 +0800	[thread overview]
Message-ID: <87ilkkmwvm.fsf@yahoo.com> (raw)
In-Reply-To: <CAK-HePja3+XWtPKhLSGimsb0Dvbi1bOL9wOQqGH_MZViiMTFzA@mail.gmail.com> (Andy Stewart's message of "Sun, 16 Oct 2022 01:25:49 +0800")

Andy Stewart <lazycat.manatee@gmail.com> writes:

> I'm author of lsp-bridge, I found Emacs pgtk's
> make-frame-visible/make-frame-invisible is much slower than Emacs x11
> branch.
>
> I read source code of pgtk_make_frame_visible at
> https://github.com/bqv/emacs/blob/0f468a2f8bd6b8950be92431905b79f4d36ef8fd/src/pgtkterm.c#L508
> , why pgtk_make_frame_visible add while loop here to wait map-event
> callback?
>
> XFLOAT_DATA (Vpgtk_wait_for_event_timeout) * 1000 equal 100ms, if wait
> here too long, it will slow down user type next char even
> `gtk_widget_show' has execute.
>
> Can someone fix this issue?

Emacs wants to ensure that the frame is mapped by the X server or
Wayland compositor by the time make-frame-visible returns.

Are you using child frames by any chance? If so, please report this bug
to bug-gnu-emacs@gnu.org.



      reply	other threads:[~2022-10-16  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-15 17:25 Emacs pgtk branch make-frame-visible/make-frame-invisible slower than Emacs X11 branch Andy Stewart
2022-10-16  0:32 ` Po Lu [this message]

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=87ilkkmwvm.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=lazycat.manatee@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.