diff --git a/speedwm.c b/speedwm.c index 248c90b..389ee02 100644 --- a/speedwm.c +++ b/speedwm.c @@ -949,6 +949,13 @@ moveresizeaspect(const Arg *arg) { XRaiseWindow(dpy, c->win); resize(c, c->x, c->y, nw, nh, True); + + #if USEROUNDCORNERS + if (roundedcorners) { + XRectangle rect = { .x = 0, .y = 0, .width = c->w, .height = c->h }; + XShapeCombineRectangles(dpy, c->win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, 1); + } + #endif } void @@ -3475,6 +3482,13 @@ moveresize(const Arg *arg) { if ((msx + nmx) > c->x && (msy + nmy) > c->y) XWarpPointer(dpy, None, None, 0, 0, 0, 0, nmx, nmy); } + + #if USEROUNDCORNERS + if (roundedcorners) { + XRectangle rect = { .x = 0, .y = 0, .width = c->w, .height = c->h }; + XShapeCombineRectangles(dpy, c->win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, 1); + } + #endif } void @@ -3560,6 +3574,13 @@ moveresizeedge(const Arg *arg) { if ((msx + nmx) > c->x && (msy + nmy) > c->y) XWarpPointer(dpy, None, None, 0, 0, 0, 0, nmx, nmy); } + + #if USEROUNDCORNERS + if (roundedcorners) { + XRectangle rect = { .x = 0, .y = 0, .width = c->w, .height = c->h }; + XShapeCombineRectangles(dpy, c->win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, 1); + } + #endif } Client *