mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Adding noborder patch
This commit is contained in:
parent
e0a21f0869
commit
69c6037b26
@ -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)
|
||||
|
||||
|
9
dwm.c
9
dwm.c
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user