[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/window.c
From: |
Nick Roberts |
Subject: |
[Emacs-diffs] Changes to emacs/src/window.c |
Date: |
Mon, 17 Apr 2006 00:24:50 +0000 |
Index: emacs/src/window.c
diff -u emacs/src/window.c:1.540 emacs/src/window.c:1.541
--- emacs/src/window.c:1.540 Mon Mar 20 22:22:25 2006
+++ emacs/src/window.c Mon Apr 17 00:24:50 2006
@@ -661,12 +661,20 @@
|| WINDOW_RIGHTMOST_P (w))
{
if (!WINDOW_LEFTMOST_P (w) && abs (*x - x0) < grabbable_width)
- return ON_VERTICAL_BORDER;
+ {
+ *x = max (0, *x - x0);
+ *y -= top_y;
+ return ON_VERTICAL_BORDER;
+ }
}
else
{
if (abs (*x - x1) < grabbable_width)
- return ON_VERTICAL_BORDER;
+ {
+ *x = min (x1, *x) - x0;
+ *y -= top_y;
+ return ON_VERTICAL_BORDER;
+ }
}
if (*x < x0 || *x >= x1)
@@ -708,7 +716,11 @@
&& !WINDOW_HAS_VERTICAL_SCROLL_BAR (w)
&& !WINDOW_RIGHTMOST_P (w)
&& (abs (*x - right_x) < grabbable_width))
- return ON_VERTICAL_BORDER;
+ {
+ *x = min (right_x, *x) - left_x;
+ *y -= top_y;
+ return ON_VERTICAL_BORDER;
+ }
}
else
{
@@ -720,6 +732,8 @@
{
/* On the border on the right side of the window? Assume that
this area begins at RIGHT_X minus a canonical char width. */
+ *x = min (right_x, *x) - left_x;
+ *y -= top_y;
return ON_VERTICAL_BORDER;
}
}
- [Emacs-diffs] Changes to emacs/src/window.c,
Nick Roberts <=