[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5fd1c08: Fix handling of mouse events on header lin
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 5fd1c08: Fix handling of mouse events on header line with tab-line |
Date: |
Fri, 18 Oct 2019 10:56:48 -0400 (EDT) |
branch: master
commit 5fd1c086e7c6e182893e727444faa33de1c62650
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix handling of mouse events on header line with tab-line
* src/window.c (coordinates_in_window): Fix conditions for
coordinates being on the window's header line when that
window also displays a tab-line. (Bug#37807)
---
src/window.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/window.c b/src/window.c
index e4bb2da..0fa0bdf 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1321,8 +1321,10 @@ coordinates_in_window (register struct window *w, int x,
int y)
&& y < top_y + CURRENT_TAB_LINE_HEIGHT (w)
&& (part = ON_TAB_LINE))
|| (window_wants_header_line (w)
- && y < top_y + CURRENT_TAB_LINE_HEIGHT (w)
- + CURRENT_HEADER_LINE_HEIGHT (w)
+ && y < top_y + CURRENT_HEADER_LINE_HEIGHT (w)
+ + (window_wants_tab_line (w)
+ ? CURRENT_TAB_LINE_HEIGHT (w)
+ : 0)
&& (part = ON_HEADER_LINE)))
{
/* If it's under/over the scroll bar portion of the mode/header
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5fd1c08: Fix handling of mouse events on header line with tab-line,
Eli Zaretskii <=