mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Use argument to pass down flags for mousefunc cyclegroup; removes
rcyclegroup wrapper need - now similar to kbfunc.
This commit is contained in:
parent
d91571c567
commit
34f43e3f2d
2
calmwm.h
2
calmwm.h
@ -495,8 +495,6 @@ void mousefunc_client_move(struct client_ctx *,
|
|||||||
union arg *);
|
union arg *);
|
||||||
void mousefunc_client_raise(struct client_ctx *,
|
void mousefunc_client_raise(struct client_ctx *,
|
||||||
union arg *);
|
union arg *);
|
||||||
void mousefunc_client_rcyclegroup(struct client_ctx *,
|
|
||||||
union arg *);
|
|
||||||
void mousefunc_client_resize(struct client_ctx *,
|
void mousefunc_client_resize(struct client_ctx *,
|
||||||
union arg *);
|
union arg *);
|
||||||
void mousefunc_menu_cmd(struct client_ctx *, union arg *);
|
void mousefunc_menu_cmd(struct client_ctx *, union arg *);
|
||||||
|
7
conf.c
7
conf.c
@ -549,9 +549,10 @@ static struct {
|
|||||||
{ "window_lower", mousefunc_client_lower, MOUSEBIND_CTX_WIN, {0} },
|
{ "window_lower", mousefunc_client_lower, MOUSEBIND_CTX_WIN, {0} },
|
||||||
{ "window_raise", mousefunc_client_raise, MOUSEBIND_CTX_WIN, {0} },
|
{ "window_raise", mousefunc_client_raise, MOUSEBIND_CTX_WIN, {0} },
|
||||||
{ "window_hide", mousefunc_client_hide, MOUSEBIND_CTX_WIN, {0} },
|
{ "window_hide", mousefunc_client_hide, MOUSEBIND_CTX_WIN, {0} },
|
||||||
{ "cyclegroup", mousefunc_client_cyclegroup, MOUSEBIND_CTX_ROOT, {0} },
|
{ "cyclegroup", mousefunc_client_cyclegroup,
|
||||||
{ "rcyclegroup", mousefunc_client_rcyclegroup,
|
MOUSEBIND_CTX_ROOT, {.i = CWM_CYCLE} },
|
||||||
MOUSEBIND_CTX_ROOT, {0} },
|
{ "rcyclegroup", mousefunc_client_cyclegroup,
|
||||||
|
MOUSEBIND_CTX_ROOT, {.i = CWM_RCYCLE} },
|
||||||
{ "menu_group", mousefunc_menu_group, MOUSEBIND_CTX_ROOT, {0} },
|
{ "menu_group", mousefunc_menu_group, MOUSEBIND_CTX_ROOT, {0} },
|
||||||
{ "menu_unhide", mousefunc_menu_unhide, MOUSEBIND_CTX_ROOT, {0} },
|
{ "menu_unhide", mousefunc_menu_unhide, MOUSEBIND_CTX_ROOT, {0} },
|
||||||
{ "menu_cmd", mousefunc_menu_cmd, MOUSEBIND_CTX_ROOT, {0} },
|
{ "menu_cmd", mousefunc_menu_cmd, MOUSEBIND_CTX_ROOT, {0} },
|
||||||
|
@ -200,13 +200,7 @@ mousefunc_client_hide(struct client_ctx *cc, union arg *arg)
|
|||||||
void
|
void
|
||||||
mousefunc_client_cyclegroup(struct client_ctx *cc, union arg *arg)
|
mousefunc_client_cyclegroup(struct client_ctx *cc, union arg *arg)
|
||||||
{
|
{
|
||||||
group_cycle(cc->sc, CWM_CYCLE);
|
group_cycle(cc->sc, arg->i);
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
mousefunc_client_rcyclegroup(struct client_ctx *cc, union arg *arg)
|
|
||||||
{
|
|
||||||
group_cycle(cc->sc, CWM_RCYCLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user