diff --git a/config.def.h b/config.def.h index 3058ff0..4677ba4 100644 --- a/config.def.h +++ b/config.def.h @@ -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 */ diff --git a/dwm.c b/dwm.c index 8fc6336..6103e65 100644 --- a/dwm.c +++ b/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;