summaryrefslogtreecommitdiff
path: root/app/cwm/group.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-12-11 14:09:22 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-12-11 14:09:22 +0000
commit4007bef1ba4723115ba2377a5018ad1113d137c3 (patch)
tree06f0a89438e0757636d36b5694da3644293f6f9b /app/cwm/group.c
parent8a8e74955786b3ff6417b4b70daf9cc1c100aecc (diff)
Stash Class and WM Hints in client_ctx
Diffstat (limited to 'app/cwm/group.c')
-rw-r--r--app/cwm/group.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c
index cce5b4333..f9c6a1d6a 100644
--- a/app/cwm/group.c
+++ b/app/cwm/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.
*
- * $OpenBSD: group.c,v 1.81 2013/10/17 13:59:10 okan Exp $
+ * $OpenBSD: group.c,v 1.82 2013/12/11 14:09:21 okan Exp $
*/
#include <sys/param.h>
@@ -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)