From 28d4001ecaf57a722ec418f8b8b955242402e5a2 Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 27 Aug 2015 18:53:14 +0000 Subject: Mechanical change: group->gc --- group.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'group.c') 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 { -- cgit 1.4.1