From 7ba072eb1a4c66b68f47468db29b67353fac496c Mon Sep 17 00:00:00 2001 From: oga Date: Mon, 19 May 2008 17:13:55 +0000 Subject: allow an autogroup value of 0 to mean no group. This means you can set automatically "sticky" (in the traditional sense of the word) windows in autogroup mode. Based on an initial diff from Andrew Fresh, thanks! ok okan@. --- group.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'group.c') diff --git a/group.c b/group.c index f96e8f1..294d7f7 100644 --- a/group.c +++ b/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: group.c,v 1.15 2008/05/19 17:11:19 okan Exp $ + * $Id: group.c,v 1.16 2008/05/19 17:13:55 oga Exp $ */ #include "headers.h" @@ -328,6 +328,9 @@ group_autogroup(struct client_ctx *cc) } } + if (strncmp("nogroup", group, 7) == 0) + return; + TAILQ_FOREACH(gc, &Groupq, entry) { if (strcmp(shortcut_to_name[gc->shortcut], group) == 0) { _group_add(gc, cc); -- cgit v1.2.3-2-gb3c3