summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2015-08-27 18:53:14 +0000
committerokan <okan>2015-08-27 18:53:14 +0000
commit28d4001ecaf57a722ec418f8b8b955242402e5a2 (patch)
treeccb95df18992a8f59abc442ab9892dfbe010d47e /group.c
parentf467838e7b1045c43f2b2ad9622736a614c8c58f (diff)
downloadcwm-28d4001ecaf57a722ec418f8b8b955242402e5a2.tar.gz
cwm-28d4001ecaf57a722ec418f8b8b955242402e5a2.tar.xz
cwm-28d4001ecaf57a722ec418f8b8b955242402e5a2.zip
Mechanical change: group->gc
Diffstat (limited to 'group.c')
-rw-r--r--group.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/group.c b/group.c
index 3cb5e79..c455bcd 100644
--- a/group.c
+++ b/group.c
@@ -45,15 +45,15 @@ const char *num_to_name[] = {
 void
 group_assign(struct group_ctx *gc, struct client_ctx *cc)
 {
-	if (cc->group != NULL)
-		TAILQ_REMOVE(&cc->group->clientq, cc, group_entry);
+	if (cc->gc != NULL)
+		TAILQ_REMOVE(&cc->gc->clientq, cc, group_entry);
 
 	if ((gc != NULL) && (gc->num == 0))
 		gc = NULL;
 
-	cc->group = gc;
+	cc->gc = gc;
 
-	if (cc->group != NULL)
+	if (cc->gc != NULL)
 		TAILQ_INSERT_TAIL(&gc->clientq, cc, group_entry);
 
 	xu_ewmh_net_wm_desktop(cc);
@@ -162,7 +162,7 @@ group_movetogroup(struct client_ctx *cc, int idx)
 			break;
 	}
 
-	if (cc->group == gc)
+	if (cc->gc == gc)
 		return;
 	if (group_holds_only_hidden(gc))
 		client_hide(cc);
@@ -175,7 +175,7 @@ group_toggle_membership_enter(struct client_ctx *cc)
 	struct screen_ctx	*sc = cc->sc;
 	struct group_ctx	*gc = sc->group_active;
 
-	if (gc == cc->group) {
+	if (gc == cc->gc) {
 		group_assign(NULL, cc);
 		cc->flags |= CLIENT_UNGROUP;
 	} else {