mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
bring menu bits closer together
This commit is contained in:
parent
231abb818a
commit
87d604f119
@ -197,8 +197,8 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
|
|||||||
if (TAILQ_EMPTY(&menuq))
|
if (TAILQ_EMPTY(&menuq))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL);
|
if ((mi = menu_filter(sc, &menuq, NULL, NULL, 0,
|
||||||
if (mi != NULL && mi->ctx != NULL) {
|
NULL, NULL)) != NULL) {
|
||||||
gc = (struct group_ctx *)mi->ctx;
|
gc = (struct group_ctx *)mi->ctx;
|
||||||
(group_hidden_state(gc)) ?
|
(group_hidden_state(gc)) ?
|
||||||
group_show(sc, gc) : group_hide(sc, 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) {
|
NULL, NULL)) != NULL) {
|
||||||
cc = (struct client_ctx *)mi->ctx;
|
cc = (struct client_ctx *)mi->ctx;
|
||||||
client_unhide(cc);
|
client_unhide(cc);
|
||||||
|
|
||||||
if (old_cc != NULL)
|
if (old_cc != NULL)
|
||||||
client_ptrsave(old_cc);
|
client_ptrsave(old_cc);
|
||||||
client_ptrwarp(cc);
|
client_ptrwarp(cc);
|
||||||
|
Loading…
Reference in New Issue
Block a user