Fix: Floating mode keybinds + rounded corners (See issue here: https://github.com/bakkeby/dwm-flexipatch/issues/304)

This commit is contained in:
speediegq 2022-10-14 22:54:06 +02:00
parent 082ec5dbd8
commit b7a4c181e7

View file

@ -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 *