aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2013-04-08 13:05:27 +0000
committerokan2013-04-08 13:05:27 +0000
commit1bc01b9715b04bacb85f434cc26458e80769e576 (patch)
tree9382bed69d2834ec2fb6e9aeaa354ba2f78bc302 /group.c
parentd1eadb2523343593a8cb47dd42ac971712168710 (diff)
downloadcwm-1bc01b9715b04bacb85f434cc26458e80769e576.tar.gz
reverse logic to make it like the others
Diffstat (limited to '')
-rw-r--r--group.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/group.c b/group.c
index 2a35a51..011ae8f 100644
--- a/group.c
+++ b/group.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.
*
- * $OpenBSD: group.c,v 1.72 2013/04/08 13:02:31 okan Exp $
+ * $OpenBSD: group.c,v 1.73 2013/04/08 13:05:27 okan Exp $
*/
#include <sys/param.h>
@@ -375,15 +375,11 @@ group_menu(XButtonEvent *e)
return;
mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL);
+ if (mi != NULL && mi->ctx != NULL) {
+ gc = (struct group_ctx *)mi->ctx;
+ (gc->hidden) ? group_show(sc, gc) : group_hide(sc, gc);
+ }
- if (mi == NULL || mi->ctx == NULL)
- goto cleanup;
-
- gc = (struct group_ctx *)mi->ctx;
-
- (gc->hidden) ? group_show(sc, gc) : group_hide(sc, gc);
-
-cleanup:
menuq_clear(&menuq);
}