From de99bf6af06aba4659740b8f3d892ff5db5bce03 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Wed, 8 Nov 2017 21:45:28 -0500 Subject: [PATCH v1] Fix line number display when using gtk tooltips (Bug#27647) * src/xdisp.c (should_produce_line_number): Don't check tip_frame when using gtk tooltips. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 69b74dc629..3b75811cc3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -21126,7 +21126,8 @@ should_produce_line_number (struct it *it) #ifdef HAVE_WINDOW_SYSTEM /* Don't display line number in tooltip frames. */ - if (FRAMEP (tip_frame) && EQ (WINDOW_FRAME (it->w), tip_frame)) + if (!x_gtk_use_system_tooltips + && FRAMEP (tip_frame) && EQ (WINDOW_FRAME (it->w), tip_frame)) return false; #endif -- 2.11.0