Mercurial > emacs
changeset 36127:f03dfbb443ce
(coordinates_in_window): Increase width of area
where the vertical line can be dragged.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 16 Feb 2001 14:56:44 +0000 |
parents | 725a419874b0 |
children | 908ea71eca84 |
files | src/window.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Fri Feb 16 14:45:21 2001 +0000 +++ b/src/window.c Fri Feb 16 14:56:44 2001 +0000 @@ -526,6 +526,9 @@ int ux = CANON_X_UNIT (f), uy = CANON_Y_UNIT (f); int x0 = XFASTINT (w->left) * ux; int x1 = x0 + XFASTINT (w->width) * ux; + /* The width of the area where the vertical line can be dragged. + (Between mode lines for instance. */ + int grabbable_width = ux; if (*x < x0 || *x >= x1) return ON_NOTHING; @@ -567,10 +570,10 @@ if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f)) { - if (abs (*x - x0) < ux / 2) + if (abs (*x - x0) < grabbable_width) part = ON_VERTICAL_BORDER; } - else if (!WINDOW_RIGHTMOST_P (w) && abs (*x - x1) < ux / 2) + else if (!WINDOW_RIGHTMOST_P (w) && abs (*x - x1) < grabbable_width) part = ON_VERTICAL_BORDER; } else if (WINDOW_WANTS_HEADER_LINE_P (w) @@ -581,10 +584,10 @@ if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f)) { - if (abs (*x - x0) < ux / 2) + if (abs (*x - x0) < grabbable_width) part = ON_VERTICAL_BORDER; } - else if (!WINDOW_RIGHTMOST_P (w) && abs (*x - x1) < ux / 2) + else if (!WINDOW_RIGHTMOST_P (w) && abs (*x - x1) < grabbable_width) part = ON_VERTICAL_BORDER; } /* Outside anything interesting? */ @@ -604,7 +607,7 @@ if (!w->pseudo_window_p && !FRAME_HAS_VERTICAL_SCROLL_BARS (f) && !WINDOW_RIGHTMOST_P (w) - && (abs (*x - right_x - flags_area_width) < ux / 2)) + && (abs (*x - right_x - flags_area_width) < grabbable_width)) { part = ON_VERTICAL_BORDER; }