aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorEli Zaretskii2019-10-19 10:42:14 +0300
committerEli Zaretskii2019-10-19 10:42:14 +0300
commit2a3577ba11e391838f3f5dfdf48ae5a0c16b9301 (patch)
tree992a842c7dc2e06fd325306132b754f659146269 /src/dispnew.c
parent23520fe33978030213026b5cb9be2e9ca62a31da (diff)
downloademacs-2a3577ba11e391838f3f5dfdf48ae5a0c16b9301.tar.gz
emacs-2a3577ba11e391838f3f5dfdf48ae5a0c16b9301.zip
A better fix for tab-line mouse highlight on TTY frames
* src/dispnew.c (mode_line_string): * src/xdisp.c (note_mode_line_or_margin_highlight): Remove recently-added workarounds for incorrect TTY mouse highlight: they are no longer needed. (mark_window_display_accurate_1): Set the header_line_p and tab_line_p flags of the window's current_matrix if the window displays these. (display_mode_line): Set the header_line_p and tab_line_p flags of the window's desired_matrix if the window displays these. (Bug#37807)
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 47bf3c26cb2..4cdc76f5bcf 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5517,15 +5517,7 @@ mode_line_string (struct window *w, enum window_part part,
5517 else if (part == ON_TAB_LINE) 5517 else if (part == ON_TAB_LINE)
5518 row = MATRIX_TAB_LINE_ROW (w->current_matrix); 5518 row = MATRIX_TAB_LINE_ROW (w->current_matrix);
5519 else 5519 else
5520 { 5520 row = MATRIX_HEADER_LINE_ROW (w->current_matrix);
5521 row = MATRIX_HEADER_LINE_ROW (w->current_matrix);
5522 /* On TTY frames the matrix's tab_line_p flag is not set
5523 (FIXME!), so we need to adjust by hand. */
5524 if (!FRAME_WINDOW_P (XFRAME (w->frame))
5525 && window_wants_tab_line (w))
5526
5527 row++;
5528 }
5529 y0 = *y - row->y; 5521 y0 = *y - row->y;
5530 *y = row - MATRIX_FIRST_TEXT_ROW (w->current_matrix); 5522 *y = row - MATRIX_FIRST_TEXT_ROW (w->current_matrix);
5531 5523