comparison src/window.c @ 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 8f3f7e087ae6
children 389db2f016a4
comparison
equal deleted inserted replaced
99744:a972544240b9 99745:b06d87fbe42d
772 return ON_VERTICAL_BORDER; 772 return ON_VERTICAL_BORDER;
773 } 773 }
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. */
781 *x = min (x1, *x) - x0; 785 *x = min (x1, *x) - x0;
782 *y -= top_y; 786 *y -= top_y;