diff options
author | okan | 2012-12-17 17:48:57 +0000 |
---|---|---|
committer | okan | 2012-12-17 17:48:57 +0000 |
commit | 7bb305fa2e37defb54ef76fc2e83cc6c997ad01b (patch) | |
tree | d817707685a9d95e2ab559d34f2e9d0046e911e2 /client.c | |
parent | c69d019777780018c85d66208a69dae5f2e015a4 (diff) | |
download | cwm-7bb305fa2e37defb54ef76fc2e83cc6c997ad01b.tar.gz |
replace client highlight with a client flag
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 <sys/param.h> @@ -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: |