From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: <87h7aye45g.fsf@yahoo.com> References: <87pmpq7zc7.fsf@posteo.org> <87pmpobt9v.fsf@gnus.org> <87lf0ae87l.fsf_-_@yahoo.com> <6a538437-5c84-577b-d17f-93b02831c163@gmx.at> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33088"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: Lars Ingebrigtsen , 52705@debbugs.gnu.org, Aleksandr Vityazev To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 24 10:37:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n0h0l-0008RU-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Dec 2021 10:37:15 +0100 Original-Received: from localhost ([::1]:52684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0h0j-0001s6-LJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Dec 2021 04:37:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0h0Y-0001ry-QA for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 04:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0h0Y-0001og-CT for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 04:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n0h0Y-0000Xl-7J for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 04:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Dec 2021 09:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52705 X-GNU-PR-Package: emacs Original-Received: via spool by 52705-submit@debbugs.gnu.org id=B52705.16403385732031 (code B ref 52705); Fri, 24 Dec 2021 09:37:02 +0000 Original-Received: (at 52705) by debbugs.gnu.org; 24 Dec 2021 09:36:13 +0000 Original-Received: from localhost ([127.0.0.1]:35697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0gzl-0000Wg-CE for submit@debbugs.gnu.org; Fri, 24 Dec 2021 04:36:13 -0500 Original-Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:46828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0gzj-0000WQ-JS for 52705@debbugs.gnu.org; Fri, 24 Dec 2021 04:36:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640338565; bh=8EKiFh1W2s0KK/7jU2KTJ5+bf9+YV5+AuAV7+kg0Ng0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=PZ9YY3OhiGneCeP04apu9y50884gyxLA944+6zQ4WFaIfp+orQAmTFY+1sJkZkplxqXrxbpCes1j82hVvW7JLoh+xm//6c+mNu73LlmIPO4/lL7N54o3V9IQvJd+W5GRnhI3jEXeV32CGyYH3T4iE/fpaprjfDxnc21PkZmi6/JhQo4gOudjEuF99WuXf7CwWPK7TsIlgEaohxo47plSE4G0f0UnpGLAg6yRsLU2jxnQXs2By92ni4aY7ACs3pZBoBZkfAGw7zrhg64LKLQLzTNvVi6CglQQO+cymsXzK9XQsP9BGfpHZese53YYw4gHdPL+jPGHazbW91YVnBATRQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640338565; bh=NDofC22YBbkQ7ZhvHb4DMnNNxjfE/i8cwdmWw25D0KY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=OitqW+2DatO6+TxIXY+PYDDpZB+U60umBZIeglYpuUnA+j+T5vIrsXx6UV2GR6Xm4tweRfpkIwkEy+ueVJACpLYdPMP/HxjXrUj6NeNoHYp3sEE2nBiN/k7V+Xu8CMDIUlXkDQpS5rvsvX/wXTV1+vqBzZmXZ4kmxPDWUEhaL1AanU/tkOoPpjbebdAZwXqot6QCDhspPiTVkGN9TaF9ftLP2L/hpcCzj1cV+6EtUvn5Yp+BV5VOwzEPAJmyAGRVaHmQasf0FEnhWi3AHqszj3OpFGYPmhZW7QHcncxwdlOhVlsBbTXR9AWrpgmqFpNJ0lPztbhBX1xJnmaRLb5KWg== X-YMail-OSG: od4BF3oVM1mmYD9zVcjMHa4gZNHAQEIukbJggovhXYEiN7R6p1CHE0OZKu.5C3N KeHdOukpEPVaBZbn8SETiiMqCo2Zq52ed1v0DIg45kkFApJVEHrvImVwsFouMpEOqTOysbrncE5f rT4wpMv1K95ZO20AwteDmM_mAI1_l_PkcCfYfwdWU8zu6aGhwOnqZqdGBtOv87HI57_Uwin9dmXb 7LIwzldCLK6LRBSIWUUOWH0mA7UAXavVlcrmxgHXULaB2ZfnqxnT53i6hX_wgVuvsaMYzK1Jb3dq Spdls7A2CD34_DM3y4ZdTcNnyKS5A4LPDiStB_oTB2ggWjRT0OIqGyYg.LwI_sOVRYUBwbTSZ0M3 uVN2p3QJNFnUE7YEalMrVknI_r_vDU5Uou8fSbtRLmkZccj.U2eAHKNSeNBiPKyU8ovjhqPFP.Y2 NqmKDdKsH.yTxsqSluOG1_1nmikFfBZSze0yIzv774GNCLSie6eu5Y_Qdoh.n04rxLjC57BgLNB8 RY.XwtXVqgMEDSs.Txz2beiUT4_NfmCKzgiga3qoMnLv9S51SeGba3DuWtjLZi7uqbR3LWFHbwHN 3BW45PDU7m7OfqrsdI1cxOi04JBVSMPY3k6sr8UfV0VkDvDUMFbESofKDOebgFS9JhXvNu2njVAh UfdYDANBV5cE2UkNURqK5k1nJp2883BFm0ZnHIZFXkNvrbELiI1XDTtCEv7UbkVAp7YRoQgxXjzi MLPd06Pn_LM3cMwFLX5Qx08UgMK8FA8SOKQw55.xIA5JcRCozYo1ncVUolGVGg4syXHEVEDr22zP t0POFemq0LUvQjDcHXmHWrwiPwd_nNzpDXbsFGHI4m X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Fri, 24 Dec 2021 09:36:05 +0000 Original-Received: by kubenode502.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 86596cc048eda3080109784270097ce1; Fri, 24 Dec 2021 09:36:00 +0000 (UTC) In-Reply-To: <6a538437-5c84-577b-d17f-93b02831c163@gmx.at> (martin rudalics's message of "Fri, 24 Dec 2021 09:43:58 +0100") X-Mailer: WebService/1.1.19498 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223031 Archived-At: martin rudalics 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.