From 1b9fe55025f84a8430b4be5822784551746eee8d Mon Sep 17 00:00:00 2001 From: "arg@localhost.10kloc.org" Date: Mon, 21 Aug 2006 17:41:09 +0200 Subject: after switching to OpenBSD again, I switched back to a saner color scheme --- client.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index cb5334e7..8b98c198 100644 --- a/client.c +++ b/client.c @@ -73,12 +73,14 @@ focus(Client *c) { Client *old = sel; - if (!issel) + if(!issel) return; - if(sel && sel->ismax && sel != c) - togglemax(NULL); - sel = c; - if(old && old != c) { + if(!sel) + sel = c; + else if(sel != c) { + if(sel->ismax) + togglemax(NULL); + sel = c; grabbutton(old, AnyButton, 0); drawtitle(old); } -- cgit v1.2.3