aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2019-10-18 17:55:21 +0300
committerEli Zaretskii2019-10-18 17:55:21 +0300
commit5fd1c086e7c6e182893e727444faa33de1c62650 (patch)
tree844204b42a91f542c4d2e019bc244c6c0ab13c8c /src
parent6331d23de3a861de2374be2c03b42e3a2f150792 (diff)
downloademacs-5fd1c086e7c6e182893e727444faa33de1c62650.tar.gz
emacs-5fd1c086e7c6e182893e727444faa33de1c62650.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index e4bb2daeb38..0fa0bdf7b92 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1321,8 +1321,10 @@ coordinates_in_window (register struct window *w, int x, int y)
1321 && y < top_y + CURRENT_TAB_LINE_HEIGHT (w) 1321 && y < top_y + CURRENT_TAB_LINE_HEIGHT (w)
1322 && (part = ON_TAB_LINE)) 1322 && (part = ON_TAB_LINE))
1323 || (window_wants_header_line (w) 1323 || (window_wants_header_line (w)
1324 && y < top_y + CURRENT_TAB_LINE_HEIGHT (w) 1324 && y < top_y + CURRENT_HEADER_LINE_HEIGHT (w)
1325 + CURRENT_HEADER_LINE_HEIGHT (w) 1325 + (window_wants_tab_line (w)
1326 ? CURRENT_TAB_LINE_HEIGHT (w)
1327 : 0)
1326 && (part = ON_HEADER_LINE))) 1328 && (part = ON_HEADER_LINE)))
1327 { 1329 {
1328 /* If it's under/over the scroll bar portion of the mode/header 1330 /* If it's under/over the scroll bar portion of the mode/header