my flexipatch

This commit is contained in:
2022-09-23 00:01:22 +02:00
commit 1028bffd8d
288 changed files with 28740 additions and 0 deletions

19
patch/insets.c Normal file
View File

@@ -0,0 +1,19 @@
void
setinset(Monitor *m, Inset inset)
{
Bar *bar;
m->inset = inset;
updatebarpos(m);
for (bar = m->bar; bar; bar = bar->next)
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
arrange(m);
}
void
updateinset(const Arg *arg)
{
Inset *inset = (Inset *)arg->v;
for (Monitor *m = mons; m; m = m->next)
setinset(m, *inset);
}