Mercurial > emacs
changeset 99745:b06d87fbe42d
(coordinates_in_window): Don't return
ON_VERTICAL_BORDER for the rightmost position of a mode/header
line when the window is not the rightmost one. (Bug#1372)
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Thu, 20 Nov 2008 10:13:06 +0000 |
parents | a972544240b9 |
children | 07389f46a9e0 |
files | src/window.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Thu Nov 20 02:58:34 2008 +0000 +++ b/src/window.c Thu Nov 20 10:13:06 2008 +0000 @@ -774,7 +774,11 @@ } else { - if (eabs (*x - x1) < grabbable_width) + /* Make sure we're not at the rightmost position of a + mode-/header-line and there's yet another window on + the right. (Bug#1372) */ + if ((WINDOW_RIGHTMOST_P (w) || *x < x1) + && eabs (*x - x1) < grabbable_width) { /* Convert X and Y to window relative coordinates. Vertical border is at the right edge of window. */