diff options
author | okan <okan> | 2013-12-11 14:09:21 +0000 |
---|---|---|
committer | okan <okan> | 2013-12-11 14:09:21 +0000 |
commit | 23a1abdd8ac7025ff55e287bd4437594618781d2 (patch) | |
tree | 74e2c780d9febb278c8eb1a96ede249109760726 /group.c | |
parent | 1d68f0683a784420b5a6ec0b8f1622b6ccd5fcc7 (diff) | |
download | cwm-23a1abdd8ac7025ff55e287bd4437594618781d2.tar.gz cwm-23a1abdd8ac7025ff55e287bd4437594618781d2.tar.xz cwm-23a1abdd8ac7025ff55e287bd4437594618781d2.zip |
Stash Class and WM Hints in client_ctx
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/group.c b/group.c index 2c62ae6..94d881a 100644 --- a/group.c +++ b/group.c @@ -371,7 +371,7 @@ group_autogroup(struct client_ctx *cc) int no = -1, both_match = 0; long *grpno; - if (cc->app_class == NULL || cc->app_name == NULL) + if (cc->ch.res_class == NULL || cc->ch.res_name == NULL) return; if (xu_getprop(cc->win, ewmh[_NET_WM_DESKTOP], @@ -385,9 +385,9 @@ group_autogroup(struct client_ctx *cc) XFree(grpno); } else { TAILQ_FOREACH(aw, &Conf.autogroupq, entry) { - if (strcmp(aw->class, cc->app_class) == 0) { + if (strcmp(aw->class, cc->ch.res_class) == 0) { if ((aw->name != NULL) && - (strcmp(aw->name, cc->app_name) == 0)) { + (strcmp(aw->name, cc->ch.res_name) == 0)) { no = aw->num; both_match = 1; } else if (aw->name == NULL && !both_match) |