noborder parameter
- Add noborder parameter to enable/disable border when only one window is shown
This commit is contained in:
@@ -7,6 +7,7 @@ static const unsigned int gappih = 20; /* horiz inner gap between windo
|
||||
static const unsigned int gappiv = 20; /* vert inner gap between windows */
|
||||
static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
|
||||
static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
|
||||
static const int noborder = 0; /* 1 means no border when there is only one window */
|
||||
static int smartgaps = 1; /* 1 means no outer gap when there is only one window */
|
||||
static const int showbar = 1; /* 0 means no bar */
|
||||
static const int topbar = 1; /* 0 means bottom bar */
|
||||
|
2
dwm.c
2
dwm.c
@@ -1498,7 +1498,7 @@ resizeclient(Client *c, int x, int y, int w, int h)
|
||||
wc.border_width = c->bw;
|
||||
if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
|
||||
|| &monocle == c->mon->lt[c->mon->sellt]->arrange)
|
||||
&& !c->isfullscreen && !c->isfloating
|
||||
&& !c->isfullscreen && !c->isfloating && noborder
|
||||
&& NULL != c->mon->lt[c->mon->sellt]->arrange) {
|
||||
c->w = wc.width += c->bw * 2;
|
||||
c->h = wc.height += c->bw * 2;
|
||||
|
Reference in New Issue
Block a user