diff options
author | Martin Rudalics <rudalics@gmx.at> | 2008-11-20 10:13:40 +0000 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2008-11-20 10:13:40 +0000 |
commit | f6ef1e6545616f5419b7c3104ead13514851986e (patch) | |
tree | f3ed344bbcdc99b95897978800389fa320a86891 /src/window.c | |
parent | a54fdddbe5d8fd6e62e4f521abc188dac3a10a8a (diff) | |
download | emacs-f6ef1e6545616f5419b7c3104ead13514851986e.tar.gz |
(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)
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index d770822c28d..c74b163cb9f 100644 --- a/src/window.c +++ b/src/window.c @@ -774,7 +774,11 @@ coordinates_in_window (w, x, y) } 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. */ |