diff options
| author | coasteen <coasteen@proton.me> | 2026-07-09 10:42:28 +0330 |
|---|---|---|
| committer | coasteen <coasteen@proton.me> | 2026-07-09 10:42:28 +0330 |
| commit | 8cbadb61604667b407b53ee1258433994fa4765a (patch) | |
| tree | 97765fb29418fd6278fcb4cbb9760893afaf7a58 /dwm/patch/insets.c | |
Diffstat (limited to 'dwm/patch/insets.c')
| -rwxr-xr-x | dwm/patch/insets.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dwm/patch/insets.c b/dwm/patch/insets.c new file mode 100755 index 0000000..8ad99b3 --- /dev/null +++ b/dwm/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); +} + |
