summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2009-06-20 00:55:41 +0000
committerokan <okan>2009-06-20 00:55:41 +0000
commitbcc0f73bb68bab7bff0e0c969b81fe7547caa58a (patch)
tree9375d5da09799b5501da624a20855a96a23f92b0 /mousefunc.c
parent58d12134b1679a9172a7131abffc27769780b9c5 (diff)
downloadcwm-bcc0f73bb68bab7bff0e0c969b81fe7547caa58a.tar.gz
cwm-bcc0f73bb68bab7bff0e0c969b81fe7547caa58a.tar.xz
cwm-bcc0f73bb68bab7bff0e0c969b81fe7547caa58a.zip
compact a bit by condensing a few if-else's; from Thomas Pfaff
"go on then" oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 00ccab5..fc6c8b9 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -226,11 +226,7 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg)
 	TAILQ_INIT(&menuq);
 	TAILQ_FOREACH(cc, &Clientq, entry)
 		if (cc->flags & CLIENT_HIDDEN) {
-			if (cc->label != NULL)
-				wname = cc->label;
-			else
-				wname = cc->name;
-
+			wname = (cc->label) ? cc->label : cc->name;
 			if (wname == NULL)
 				continue;