diff options
| author | bakkeby <[email protected]> | 2020-08-10 12:32:58 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-10 13:16:12 +0200 |
| commit | 1dd4ec5bc436f89496b344264cf8ee1da67e5ded (patch) | |
| tree | 626e2e3bba3d16fbd179462a0d53eca1b3d2f038 /patch/insets.c | |
| parent | e5ea493d3299caad340ecbd6ef7a6fd563224f43 (diff) | |
| download | dwm-flexipatch-1dd4ec5bc436f89496b344264cf8ee1da67e5ded.tar.gz dwm-flexipatch-1dd4ec5bc436f89496b344264cf8ee1da67e5ded.zip | |
Adding insets patch
Diffstat (limited to 'patch/insets.c')
| -rw-r--r-- | patch/insets.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patch/insets.c b/patch/insets.c new file mode 100644 index 0000000..c0836cf --- /dev/null +++ b/patch/insets.c @@ -0,0 +1,18 @@ +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); +}
\ No newline at end of file |
