diff options
Diffstat (limited to 'patch/insets.c')
| -rw-r--r-- | patch/insets.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patch/insets.c b/patch/insets.c new file mode 100644 index 0000000..8ad99b3 --- /dev/null +++ b/patch/insets.c @@ -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); +} + |
