aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics2008-11-20 10:13:40 +0000
committerMartin Rudalics2008-11-20 10:13:40 +0000
commitf6ef1e6545616f5419b7c3104ead13514851986e (patch)
treef3ed344bbcdc99b95897978800389fa320a86891 /src/window.c
parenta54fdddbe5d8fd6e62e4f521abc188dac3a10a8a (diff)
downloademacs-f6ef1e6545616f5419b7c3104ead13514851986e.tar.gz
emacs-f6ef1e6545616f5419b7c3104ead13514851986e.zip
(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.c6
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)
774 } 774 }
775 else 775 else
776 { 776 {
777 if (eabs (*x - x1) < grabbable_width) 777 /* Make sure we're not at the rightmost position of a
778 mode-/header-line and there's yet another window on
779 the right. (Bug#1372) */
780 if ((WINDOW_RIGHTMOST_P (w) || *x < x1)
781 && eabs (*x - x1) < grabbable_width)
778 { 782 {
779 /* Convert X and Y to window relative coordinates. 783 /* Convert X and Y to window relative coordinates.
780 Vertical border is at the right edge of window. */ 784 Vertical border is at the right edge of window. */