summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2012-12-17 17:48:57 +0000
committerokan <okan>2012-12-17 17:48:57 +0000
commit82e8ec4245f44bd10c0fc5ed27640dafbb7beb44 (patch)
treeb14a92be3accc1a5e4e72e08f78878e4e151bd09 /group.c
parent8e67d1389ceb0450712039832e5ff868335c6846 (diff)
downloadcwm-82e8ec4245f44bd10c0fc5ed27640dafbb7beb44.tar.gz
cwm-82e8ec4245f44bd10c0fc5ed27640dafbb7beb44.tar.xz
cwm-82e8ec4245f44bd10c0fc5ed27640dafbb7beb44.zip
replace client highlight with a client flag
Diffstat (limited to 'group.c')
-rw-r--r--group.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/group.c b/group.c
index 1b89825..847cddd 100644
--- a/group.c
+++ b/group.c
@@ -218,16 +218,14 @@ void
 group_sticky_toggle_enter(struct client_ctx *cc)
 {
 	struct screen_ctx	*sc = cc->sc;
-	struct group_ctx	*gc;
-
-	gc = sc->group_active;
+	struct group_ctx	*gc = sc->group_active;
 
 	if (gc == cc->group) {
 		group_remove(cc);
-		cc->highlight = CLIENT_HIGHLIGHT_UNGROUP;
+		cc->flags |= CLIENT_UNGROUP;
 	} else {
 		group_add(gc, cc);
-		cc->highlight = CLIENT_HIGHLIGHT_GROUP;
+		cc->flags |= CLIENT_GROUP;
 	}
 
 	client_draw_border(cc);
@@ -236,7 +234,7 @@ group_sticky_toggle_enter(struct client_ctx *cc)
 void
 group_sticky_toggle_exit(struct client_ctx *cc)
 {
-	cc->highlight = 0;
+	cc->flags &= ~CLIENT_HIGHLIGHT;
 	client_draw_border(cc);
 }