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 --- client.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index f7faed3..5ff06fa 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.105 2012/12/17 14:58:46 okan Exp $ + * $OpenBSD: client.c,v 1.106 2012/12/17 17:48:57 okan Exp $ */ #include @@ -490,7 +490,6 @@ client_unhide(struct client_ctx *cc) { XMapRaised(X_Dpy, cc->win); - cc->highlight = 0; cc->flags &= ~CLIENT_HIDDEN; xu_setstate(cc, NormalState); client_draw_border(cc); @@ -503,11 +502,11 @@ client_draw_border(struct client_ctx *cc) unsigned long pixel; if (cc->active) - switch (cc->highlight) { - case CLIENT_HIGHLIGHT_GROUP: + switch (cc->flags & CLIENT_HIGHLIGHT) { + case CLIENT_GROUP: pixel = sc->color[CWM_COLOR_BORDER_GROUP].pixel; break; - case CLIENT_HIGHLIGHT_UNGROUP: + case CLIENT_UNGROUP: pixel = sc->color[CWM_COLOR_BORDER_UNGROUP].pixel; break; default: -- cgit v1.2.3-2-gb3c3