diff options
author | okan | 2018-11-13 17:37:13 +0000 |
---|---|---|
committer | okan | 2018-11-13 17:37:13 +0000 |
commit | ca79a22e6fffc9639d184a137de8b417c39e8024 (patch) | |
tree | e98647c4574e1c0f86ac91537c5e68b9f4380f08 /conf.c | |
parent | 87fe084efc23e420de6be0523ec91e82d44fc093 (diff) | |
download | cwm-ca79a22e6fffc9639d184a137de8b417c39e8024.tar.gz |
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 '')
-rw-r--r-- | conf.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.241 2018/02/13 15:43:15 okan Exp $ + * $OpenBSD: conf.c,v 1.242 2018/11/13 17:37:13 okan Exp $ */ #include <sys/types.h> @@ -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 |