diff options
author | okan <okan> | 2008-03-22 21:34:07 +0000 |
---|---|---|
committer | okan <okan> | 2008-03-22 21:34:07 +0000 |
commit | 38ff7a904ede4e6412e5d89844e62b60e2c90fdb (patch) | |
tree | d688083786b898148a22caa864d5377635be3d63 /group.c | |
parent | 36c1aac90f7253ba173ebedf1ed76fb743c8f828 (diff) | |
download | cwm-38ff7a904ede4e6412e5d89844e62b60e2c90fdb.tar.gz cwm-38ff7a904ede4e6412e5d89844e62b60e2c90fdb.tar.xz cwm-38ff7a904ede4e6412e5d89844e62b60e2c90fdb.zip |
allow autogrouping and sticky mode to work together
ok oga@
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/group.c b/group.c index ea49862..744ca69 100644 --- a/group.c +++ b/group.c @@ -341,11 +341,6 @@ group_autogroup(struct client_ctx *cc) struct group_ctx *gc; char group[CALMWM_MAXNAMELEN]; - if (Conf.flags & CONF_STICKY_GROUPS) { - _group_add(Group_active, cc); - return; - } - if (cc->app_class == NULL || cc->app_name == NULL) return; @@ -358,8 +353,13 @@ group_autogroup(struct client_ctx *cc) } TAILQ_FOREACH(gc, &Groupq, entry) { - if (strcmp(shortcut_to_name[gc->shortcut], group) == 0) + if (strcmp(shortcut_to_name[gc->shortcut], group) == 0) { _group_add(gc, cc); + return; + } } + if (Conf.flags & CONF_STICKY_GROUPS) + _group_add(Group_active, cc); + } |