cvsimport

This commit is contained in:
okan
2013-04-14 16:13:17 +00:00
9 changed files with 31 additions and 31 deletions

13
group.c
View File

@@ -351,6 +351,7 @@ group_menu(XButtonEvent *e)
int i;
sc = screen_fromroot(e->root);
TAILQ_INIT(&menuq);
for (i = 0; i < CALMWM_NGROUPS; i++) {
@@ -374,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);
}