mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 23:46:13 +01:00
dwm flexipatch
This commit is contained in:
19
dwm/.dwm/patch/insets.c
Normal file
19
dwm/.dwm/patch/insets.c
Normal 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user