From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
52705@debbugs.gnu.org, Aleksandr Vityazev <avityazev@posteo.org>
Subject: bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
Date: Fri, 24 Dec 2021 17:35:55 +0800 [thread overview]
Message-ID: <87h7aye45g.fsf@yahoo.com> (raw)
In-Reply-To: <6a538437-5c84-577b-d17f-93b02831c163@gmx.at> (martin rudalics's message of "Fri, 24 Dec 2021 09:43:58 +0100")
martin rudalics <rudalics@gmx.at> writes:
> I see the behavior Aleksandr describes here with a GTK3 build on X. The
> empty tooltip frame pops up shortly at the top left corner of the
> display regardless of where the proper Emacs frame is positioned. I
> suppose it's due to the usual delay induced by setting up the tooltip
> frame's fonts.
>
> With 'tooltip-reuse-hidden-frame' non-nil, the empty tooltip shows only
> once but unfortunately the proper tooltip is not made invisible whenever
> it is supposed to disappear (for some reason the check
>
> && !FRAME_VISIBLE_P (XFRAME (tip_frame))))
>
> on line 3204 of pgtkfns.c fails, telling that the tooltip is already
> invisible although it is still visible).
Hmm, could you try putting SET_FRAME_VISIBLE (f, 1) after this line in
`x_create_tip_frame':
gtk_window_set_attached_to (GTK_WINDOW (tip_window), FRAME_GTK_WIDGET (p));
gtk_window_set_destroy_with_parent (GTK_WINDOW (tip_window), TRUE);
gtk_window_set_decorated (GTK_WINDOW (tip_window), FALSE);
gtk_window_set_type_hint (GTK_WINDOW (tip_window), GDK_WINDOW_TYPE_HINT_TOOLTIP);
f->output_data.pgtk->current_cursor = f->output_data.pgtk->text_cursor;
-> gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));
The signal handler in `map_event' in pgtkterm.c should set the frame's
visibility, but it seems that for some reason it isn't being triggered,
even though we do set up event handling.
Thanks.
next prev parent reply other threads:[~2021-12-24 9:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 15:27 bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil Aleksandr Vityazev
2021-12-22 14:37 ` Lars Ingebrigtsen
2021-12-24 8:08 ` bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-24 8:43 ` martin rudalics
2021-12-24 9:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-12-24 10:19 ` martin rudalics
2021-12-24 10:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-24 16:03 ` martin rudalics
2021-12-25 0:30 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-25 9:17 ` martin rudalics
2021-12-25 9:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-25 17:16 ` martin rudalics
2021-12-26 1:22 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-26 8:25 ` martin rudalics
2022-01-02 12:14 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-02 12:33 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7aye45g.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=52705@debbugs.gnu.org \
--cc=avityazev@posteo.org \
--cc=larsi@gnus.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).