diff options
Diffstat (limited to 'patch/exresize.c')
| -rw-r--r-- | patch/exresize.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/patch/exresize.c b/patch/exresize.c index 4d8d4b0..e9786b3 100644 --- a/patch/exresize.c +++ b/patch/exresize.c @@ -117,6 +117,11 @@ expand(unsigned char mask) { XEvent ev; int nx1, ny1, nx2, ny2; + #if SETBORDERPX_PATCH + int bp = selmon->borderpx; + #else + int bp = borderpx; + #endif // SETBORDERPX_PATCH unsigned char curmask; unsigned char newmask; @@ -142,7 +147,7 @@ expand(unsigned char mask) nx2 = calculate_expand(mask, curmask, &newmask, EXPAND_RIGHT, &selmon->sel->expandx2, selmon->sel->x + selmon->sel->w, - selmon->wx + selmon->ww - 2*borderpx, + selmon->wx + selmon->ww - 2*bp, selmon->sel->oldw + selmon->sel->x); ny1 = calculate_expand(mask, curmask, &newmask, EXPAND_UP, &selmon->sel->expandy1, @@ -152,7 +157,7 @@ expand(unsigned char mask) ny2 = calculate_expand(mask, curmask, &newmask, EXPAND_DOWN, &selmon->sel->expandy2, selmon->sel->y + selmon->sel->h, - selmon->wy + selmon->wh - 2*borderpx, + selmon->wy + selmon->wh - 2*bp, selmon->sel->oldh + selmon->sel->y); |
