Adding rounded corners patch

This commit is contained in:
bakkeby
2020-03-31 08:21:00 +02:00
parent f2673fec53
commit a560b9cb53
9 changed files with 90 additions and 1 deletions

14
dwm.c
View File

@@ -652,6 +652,11 @@ arrangemon(Monitor *m)
strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol);
if (m->lt[m->sellt]->arrange)
m->lt[m->sellt]->arrange(m);
#if ROUNDED_CORNERS_PATCH
Client *c;
for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
drawroundedcorners(c);
#endif // ROUNDED_CORNERS_PATCH
}
void
@@ -2261,6 +2266,9 @@ movemouse(const Arg *arg)
resize(c, nx, ny, c->w, c->h, 1);
#endif // SAVEFLOATS_PATCH / EXRESIZE_PATCH
}
#if ROUNDED_CORNERS_PATCH
drawroundedcorners(c);
#endif // ROUNDED_CORNERS_PATCH
break;
}
} while (ev.type != ButtonRelease);
@@ -2270,6 +2278,9 @@ movemouse(const Arg *arg)
selmon = m;
focus(NULL);
}
#if ROUNDED_CORNERS_PATCH
drawroundedcorners(c);
#endif // ROUNDED_CORNERS_PATCH
}
Client *
@@ -2526,6 +2537,9 @@ resizemouse(const Arg *arg)
c->sfh = nh;
#endif // SAVEFLOATS_PATCH / EXRESIZE_PATCH
#endif // RESIZECORNERS_PATCH
#if ROUNDED_CORNERS_PATCH
drawroundedcorners(c);
#endif // ROUNDED_CORNERS_PATCH
}
break;
}