The following shows the diffstat and patchsets between
ef8a167..5c5fbdc^
----------------------------------------------------------------
commit 5c5fbdc2c0c512465f45d97aa4eaa2de0830380a
Author: Thomas Adam <[email protected]>
Date: Thu Dec 4 01:04:47 2014 +0000
GetWorkAreaIntersection - fix for XRandR
Don't cull the width/height of the intersection when the coords approach 0,
as
this is a legitimate offset for the boundaries of the next rectangle.
---
mvwm/ewmh.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/mvwm/ewmh.c b/mvwm/ewmh.c
index 8efac3b..d9e171b 100644
--- a/mvwm/ewmh.c
+++ b/mvwm/ewmh.c
@@ -1094,13 +1094,18 @@ void EWMH_GetWorkAreaIntersection(
}
nx = max(*x, area_x);
ny = max(*y, area_y);
- nw = min(*x + *w, area_x + area_w) - nx;
- nh = min(*y + *h, area_y + area_h) - ny;
+ nw = min(*x + *w, area_x + area_w);
+ nh = min(*y + *h, area_y + area_h);
*x = nx;
*y = ny;
*w = nw;
*h = nh;
+ if ((nw - nx) > 0)
+ *w = nw - nx;
+ if ((nh - ny) > 0)
+ *h = nh - ny;
+
return;
}
----------------------------------------------------------------
Diffstat:
----------------------------------------------------------------
mvwm/ewmh.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------