aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2018-11-13 17:37:13 +0000
committerokan2018-11-13 17:37:13 +0000
commitca79a22e6fffc9639d184a137de8b417c39e8024 (patch)
treee98647c4574e1c0f86ac91537c5e68b9f4380f08 /conf.c
parent87fe084efc23e420de6be0523ec91e82d44fc093 (diff)
downloadcwm-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 'conf.c')
-rw-r--r--conf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/conf.c b/conf.c
index a2e4694..c74f44c 100644
--- a/conf.c
+++ b/conf.c
@@ -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