aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2018-11-26 22:40:00 +0100
committerDuncaen <mail@duncano.de>2018-12-31 23:30:01 +0100
commit5d793210ab26932b386b2293cf58e2d6be0c86a4 (patch)
tree9609e9e82a83d42b49a8c840730a08acf29d2075
parent3187b235ef44c6826111297a56983b92afee2607 (diff)
downloaddwm-5d793210ab26932b386b2293cf58e2d6be0c86a4.tar.gz
allow rules to disable borders
-rw-r--r--dwm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 3c4406a..0417378 100644
--- a/dwm.c
+++ b/dwm.c
@@ -138,6 +138,7 @@ typedef struct {
unsigned int tags;
int isfloating;
int monitor;
+ int border;
} Rule;
/* function declarations */
@@ -300,6 +301,8 @@ applyrules(Client *c)
&& (!r->class || strstr(class, r->class))
&& (!r->instance || strstr(instance, r->instance)))
{
+ if (!r->border)
+ c->bw = 0;
c->isfloating = r->isfloating;
c->tags |= r->tags;
for (m = mons; m && m->num != r->monitor; m = m->next);