From 43033f15ed112e90c2a62d9facdbfbf1ad5b61ee Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 17 Dec 2012 14:26:29 +0000 Subject: current_client() returns _curcc, so use it where appropriate --- client.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 6eab0ff..d48ace8 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.103 2012/11/09 03:52:02 okan Exp $ + * $OpenBSD: client.c,v 1.104 2012/12/17 14:26:29 okan Exp $ */ #include @@ -158,7 +158,7 @@ client_delete(struct client_ctx *cc) xu_ewmh_net_client_list(sc); - if (_curcc == cc) + if (cc == client_current()) client_none(sc); XFree(cc->size); @@ -180,7 +180,7 @@ client_leave(struct client_ctx *cc) struct screen_ctx *sc; if (cc == NULL) - cc = _curcc; + cc = client_current(); if (cc == NULL) return; @@ -194,7 +194,7 @@ client_setactive(struct client_ctx *cc, int fg) struct screen_ctx *sc; if (cc == NULL) - cc = _curcc; + cc = client_current(); if (cc == NULL) return; @@ -214,7 +214,7 @@ client_setactive(struct client_ctx *cc, int fg) } else client_leave(cc); - if (fg && _curcc != cc) { + if (fg && cc != client_current()) { client_setactive(NULL, 0); _curcc = cc; xu_ewmh_net_active_window(sc, cc->win); @@ -480,7 +480,7 @@ client_hide(struct client_ctx *cc) cc->flags |= CLIENT_HIDDEN; xu_setstate(cc, IconicState); - if (cc == _curcc) + if (cc == client_current()) client_none(cc->sc); } @@ -737,7 +737,7 @@ client_mtf(struct client_ctx *cc) struct screen_ctx *sc; if (cc == NULL) - cc = _curcc; + cc = client_current(); if (cc == NULL) return; -- cgit v1.2.3-2-gb3c3