mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
reverse logic to make it like the others
This commit is contained in:
12
group.c
12
group.c
@ -375,15 +375,11 @@ group_menu(XButtonEvent *e)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL);
|
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);
|
menuq_clear(&menuq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user