summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2018-11-13 17:37:13 +0000
committerokan <okan>2018-11-13 17:37:13 +0000
commit194589eb6bfd9d44d2c595035475af14644350c1 (patch)
tree3778f5aee4ff4e6a5d5c619b97ed0be99ea4809e /conf.c
parent268deed916cd217b39568809d520f9d4515abdac (diff)
downloadcwm-194589eb6bfd9d44d2c595035475af14644350c1.tar.gz
cwm-194589eb6bfd9d44d2c595035475af14644350c1.tar.xz
cwm-194589eb6bfd9d44d2c595035475af14644350c1.zip
Allow 'transientfor' clients to inherit group and bwidth either during init or
via property notify events. Previously only the flags were set but nothing was
in the path to apply said flags and/or bwidth. Required slight of re-orgnaization
of client_init.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/conf.c b/conf.c
index b77425c..b18dc4a 100644
--- a/conf.c
+++ b/conf.c
@@ -434,16 +434,13 @@ void
 conf_client(struct client_ctx *cc)
 {
 	struct winname	*wn;
-	int		 ignore = 0;
 
 	TAILQ_FOREACH(wn, &Conf.ignoreq, entry) {
 		if (strncasecmp(wn->name, cc->name, strlen(wn->name)) == 0) {
-			ignore = 1;
+			cc->flags |= CLIENT_IGNORE;
 			break;
 		}
 	}
-	cc->bwidth = (ignore) ? 0 : Conf.bwidth;
-	cc->flags |= (ignore) ? CLIENT_IGNORE : 0;
 }
 
 void