diff options
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | dwm.c | 9 | ||||
| -rw-r--r-- | patches.h | 5 |
3 files changed, 18 insertions, 1 deletions
@@ -13,7 +13,7 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t ### Changelog: -2019-10-04 - Added maximize, movestack and monoclesymbol patches +2019-10-04 - Added maximize, movestack, monoclesymbol, noborder patches 2019-10-03 - Added onlyquitonempty and switchcol patches @@ -149,6 +149,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t - [movestack](https://dwm.suckless.org/patches/movestack/) - allows you to move clients around in the stack and swap them with the master + - [noborder](https://dwm.suckless.org/patches/noborder/) + - removes the border when there is only one window visible + - [onlyquitonempty](https://dwm.suckless.org/patches/onlyquitonempty/) - makes it so dwm will only exit via quit() if no windows are open (in order to prevent accidental loss of work) @@ -2042,6 +2042,15 @@ resizeclient(Client *c, int x, int y, int w, int h) c->oldw = c->w; c->w = wc.width = w; c->oldh = c->h; c->h = wc.height = h; wc.border_width = c->bw; + #if NOBORDER_PATCH + if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next)) + || &monocle == c->mon->lt[c->mon->sellt]->arrange) + && !c->isfullscreen && !c->isfloating) { + c->w = wc.width += c->bw * 2; + c->h = wc.height += c->bw * 2; + wc.border_width = 0; + } + #endif // NOBORDER_PATCH XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); configure(c); XSync(dpy, False); @@ -214,6 +214,11 @@ */ #define MOVESTACK_PATCH 0 +/* Removes the border when there is only one window visible. + * https://dwm.suckless.org/patches/noborder/ + */ +#define NOBORDER_PATCH 0 + /* This patch makes it so dwm will only exit via quit() if no windows are open. * This is to prevent you accidentally losing all your work. * https://dwm.suckless.org/patches/onlyquitonempty/ |
