diff options
author | okan <okan> | 2014-09-02 14:08:39 +0000 |
---|---|---|
committer | okan <okan> | 2014-09-02 14:08:39 +0000 |
commit | 87d604f119e3598ca2b0311082c89ebb67782f76 (patch) | |
tree | 386688d171d7188c5700a8572a7745bb46e4572d /mousefunc.c | |
parent | 231abb818ae3bdb8ea01a7df99d0895f38327748 (diff) | |
download | cwm-87d604f119e3598ca2b0311082c89ebb67782f76.tar.gz cwm-87d604f119e3598ca2b0311082c89ebb67782f76.tar.xz cwm-87d604f119e3598ca2b0311082c89ebb67782f76.zip |
bring menu bits closer together
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index 2537059..c7b283a 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -197,8 +197,8 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg) if (TAILQ_EMPTY(&menuq)) return; - mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL); - if (mi != NULL && mi->ctx != NULL) { + if ((mi = menu_filter(sc, &menuq, NULL, NULL, 0, + NULL, NULL)) != NULL) { gc = (struct group_ctx *)mi->ctx; (group_hidden_state(gc)) ? group_show(sc, gc) : group_hide(sc, gc); @@ -235,7 +235,6 @@ mousefunc_menu_unhide(struct client_ctx *cc, union arg *arg) NULL, NULL)) != NULL) { cc = (struct client_ctx *)mi->ctx; client_unhide(cc); - if (old_cc != NULL) client_ptrsave(old_cc); client_ptrwarp(cc); |