compact a bit by condensing a few if-else's; from Thomas Pfaff

"go on then" oga@
This commit is contained in:
okan
2009-06-20 00:55:41 +00:00
parent 58d12134b1
commit bcc0f73bb6
5 changed files with 7 additions and 31 deletions

View File

@@ -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;