diff options
author | okan | 2009-06-20 00:55:41 +0000 |
---|---|---|
committer | okan | 2009-06-20 00:55:41 +0000 |
commit | c54416ae163702858ce97808753af16c8c9b5921 (patch) | |
tree | e9d3394584e6cb28ee5e25f556f7ce000bb9cdc6 /mousefunc.c | |
parent | c6af5e9b967797d315037b26aa05fec5b3e6ef44 (diff) | |
download | cwm-c54416ae163702858ce97808753af16c8c9b5921.tar.gz |
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.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mousefunc.c b/mousefunc.c index ff6ddeb..b58c82c 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: mousefunc.c,v 1.11 2009/06/20 00:22:39 okan Exp $ + * $Id: mousefunc.c,v 1.12 2009/06/20 00:55:42 okan Exp $ */ #include "headers.h" @@ -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; |