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@.
This commit is contained in:
oga
2008-05-19 17:13:55 +00:00
parent d347aa3d9a
commit 71f99ab78f
4 changed files with 10 additions and 3 deletions

View File

@ -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);