From bb952d8c8ea9eb441fda62f1af43f8e899b15778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Anger?= Date: Sat, 14 Apr 2012 23:05:16 +0200 Subject: [PATCH] better focus configuration : allow "enter click" --- src/config.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/config.c b/src/config.c index dc5f4cf..82265b0 100644 --- a/src/config.c +++ b/src/config.c @@ -241,13 +241,12 @@ config_client(void) W->ctheme = name_to_theme(tmp); /* Get focus configuration */ + W->cfocus = 0; tmp = fetch_opt_first(sec, "enter", "focus").str; - if(!strcmp(tmp, "enter")) - W->cfocus = CFOCUS_ENTER; - else if(!strcmp(tmp, "click")) - W->cfocus = CFOCUS_CLICK; - else - W->cfocus = 0; + if(strstr(tmp, "enter")) + W->cfocus |= CFOCUS_ENTER; + if(strstr(tmp, "click")) + W->cfocus |= CFOCUS_CLICK; /* [mouse] */ /* for client frame AND titlebar */