From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27647: 26.0.50; Line numbers implemented natively disappear momentarily when frame out of focus Date: Mon, 13 Nov 2017 21:12:26 +0200 Message-ID: <83lgjakn6t.fsf@gnu.org> References: <83eftnitpj.fsf@gnu.org> <87inekjzy8.fsf@gmail.com> <87efp8jznq.fsf@gmail.com> <87shdo4150.fsf@users.sourceforge.net> <5A0403B7.3080309@gmx.at> <83shdnqwbw.fsf@gnu.org> <5A049A30.5000802@gmx.at> <83a7zvqilp.fsf@gnu.org> <5A081D9C.1000602@gmx.at> <83o9o7n2y8.fsf@gnu.org> <5A09E854.1000402@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510600390 28336 195.159.176.226 (13 Nov 2017 19:13:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 19:13:10 +0000 (UTC) Cc: 27647@debbugs.gnu.org, npostavs@users.sourceforge.net, agrambot@gmail.com, kaushal.modi@gmail.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 13 20:13:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEKAL-000788-Dk for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Nov 2017 20:13:05 +0100 Original-Received: from localhost ([::1]:55974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEKAS-0001BZ-M8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Nov 2017 14:13:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEKAL-0001BT-Gr for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 14:13:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEKAI-0003G2-CO for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 14:13:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58411) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEKAI-0003Fr-7v for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 14:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eEKAI-0005JX-3R for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 14:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Nov 2017 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27647-submit@debbugs.gnu.org id=B27647.151060035220389 (code B ref 27647); Mon, 13 Nov 2017 19:13:02 +0000 Original-Received: (at 27647) by debbugs.gnu.org; 13 Nov 2017 19:12:32 +0000 Original-Received: from localhost ([127.0.0.1]:38859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEK9o-0005In-Cy for submit@debbugs.gnu.org; Mon, 13 Nov 2017 14:12:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEK9m-0005IZ-DS for 27647@debbugs.gnu.org; Mon, 13 Nov 2017 14:12:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEK9g-0002xL-AY for 27647@debbugs.gnu.org; Mon, 13 Nov 2017 14:12:25 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEK9c-0002vc-KN; Mon, 13 Nov 2017 14:12:20 -0500 Original-Received: from [176.228.60.248] (port=2092 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eEK9b-0001sX-Ro; Mon, 13 Nov 2017 14:12:20 -0500 In-reply-to: <5A09E854.1000402@gmx.at> (message from martin rudalics on Mon, 13 Nov 2017 19:45:40 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139845 Archived-At: > Date: Mon, 13 Nov 2017 19:45:40 +0100 > From: martin rudalics > CC: npostavs@users.sourceforge.net, agrambot@gmail.com, > 27647@debbugs.gnu.org, kaushal.modi@gmail.com > > > Not exactly. tip_frame should be nil when GTK pops a native tooltip, > > then tip_frame will get its simple semantics back. > > x_hide_tip uses NILP (tip_frame) to decide whether to hide the tip. That's non-GTK code which GTK doesn't need, but left it alone. The whole GTK support in x_hide_tip is patched over the non-GTK code, with dirty tricks like setting tip_frame to nil just to bypass the non-GTK part of the function. We will be better off with a separate GTK-only implementation. > IIUC GTK doesn't need the original frame. xg_hide_tooltip needs it, because the GTK tooltip widget is stashed away in its output->data.x structure. > But it sets tooltip_frame to it so Fx_show_tip and friends can base > their decisions on it. Look at occurrences of FRAMEP (tip_frame) > and FRAME_LIVE_P (XFRAME (tip_frame)). They pass because for GTK > tip_frame is a live frame associated with the tooltip. Jan tried > hard to leave the native tooltip code untouched. Once again, it would be better to have the GTK code completely separated, IMO.