From 7bb305fa2e37defb54ef76fc2e83cc6c997ad01b Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 17 Dec 2012 17:48:57 +0000 Subject: replace client highlight with a client flag --- group.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index 4c268c7..35e0574 100644 --- a/group.c +++ b/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.65 2012/12/17 14:32:39 okan Exp $ + * $OpenBSD: group.c,v 1.66 2012/12/17 17:48:57 okan Exp $ */ #include @@ -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); } -- cgit v1.2.3-2-gb3c3