aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2015-07-01 14:36:42 +0000
committerokan2015-07-01 14:36:42 +0000
commit066f93f7719e2667a64ac983db612410d7d55916 (patch)
treea0aa622a7729e65c52ced8e11522b8adf2c9dda7 /client.c
parent9249ec4a404cccff818bffa4430d447515184f1a (diff)
downloadcwm-066f93f7719e2667a64ac983db612410d7d55916.tar.gz
style
Diffstat (limited to 'client.c')
-rw-r--r--client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/client.c b/client.c
index 3d1c085..45f65b2 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.197 2015/06/30 14:01:43 okan Exp $
+ * $OpenBSD: client.c,v 1.198 2015/07/01 14:36:42 okan Exp $
*/
#include <sys/types.h>
@@ -655,7 +655,7 @@ client_cycle(struct screen_ctx *sc, int flags)
oldcc = client_current();
if (oldcc == NULL)
- oldcc = (flags & CWM_RCYCLE ?
+ oldcc = ((flags & CWM_RCYCLE) ?
TAILQ_LAST(&sc->clientq, client_ctx_q) :
TAILQ_FIRST(&sc->clientq));
@@ -663,7 +663,7 @@ client_cycle(struct screen_ctx *sc, int flags)
while (again) {
again = 0;
- newcc = (flags & CWM_RCYCLE ? client_prev(newcc) :
+ newcc = ((flags & CWM_RCYCLE) ? client_prev(newcc) :
client_next(newcc));
/* Only cycle visible and non-ignored windows. */
@@ -707,7 +707,7 @@ client_next(struct client_ctx *cc)
struct screen_ctx *sc = cc->sc;
struct client_ctx *ccc;
- return((ccc = TAILQ_NEXT(cc, entry)) != NULL ?
+ return(((ccc = TAILQ_NEXT(cc, entry)) != NULL) ?
ccc : TAILQ_FIRST(&sc->clientq));
}
@@ -717,7 +717,7 @@ client_prev(struct client_ctx *cc)
struct screen_ctx *sc = cc->sc;
struct client_ctx *ccc;
- return((ccc = TAILQ_PREV(cc, client_ctx_q, entry)) != NULL ?
+ return(((ccc = TAILQ_PREV(cc, client_ctx_q, entry)) != NULL) ?
ccc : TAILQ_LAST(&sc->clientq, client_ctx_q));
}