aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c9
1 files changed, 4 insertions, 5 deletions
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 <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: