[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs pgtk branch make-frame-visible/make-frame-invisible slower tha
From: |
Po Lu |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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.