mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
these have nothing to do with 'sticky', but rather group membership; rename.
This commit is contained in:
4
calmwm.h
4
calmwm.h
@@ -414,8 +414,8 @@ void group_init(struct screen_ctx *);
|
|||||||
void group_movetogroup(struct client_ctx *, int);
|
void group_movetogroup(struct client_ctx *, int);
|
||||||
void group_only(struct screen_ctx *, int);
|
void group_only(struct screen_ctx *, int);
|
||||||
void group_show(struct group_ctx *);
|
void group_show(struct group_ctx *);
|
||||||
void group_sticky_toggle_enter(struct client_ctx *);
|
void group_toggle_membership_enter(struct client_ctx *);
|
||||||
void group_sticky_toggle_exit(struct client_ctx *);
|
void group_toggle_membership_leave(struct client_ctx *);
|
||||||
void group_update_names(struct screen_ctx *);
|
void group_update_names(struct screen_ctx *);
|
||||||
|
|
||||||
void search_match_client(struct menu_q *, struct menu_q *,
|
void search_match_client(struct menu_q *, struct menu_q *,
|
||||||
|
2
client.c
2
client.c
@@ -696,7 +696,7 @@ client_cycle_leave(struct screen_ctx *sc)
|
|||||||
|
|
||||||
if ((cc = client_current())) {
|
if ((cc = client_current())) {
|
||||||
client_mtf(cc);
|
client_mtf(cc);
|
||||||
group_sticky_toggle_exit(cc);
|
group_toggle_membership_leave(cc);
|
||||||
XUngrabKeyboard(X_Dpy, CurrentTime);
|
XUngrabKeyboard(X_Dpy, CurrentTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7
group.c
7
group.c
@@ -162,11 +162,8 @@ group_movetogroup(struct client_ctx *cc, int idx)
|
|||||||
group_assign(gc, cc);
|
group_assign(gc, cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Colouring for groups upon add/remove.
|
|
||||||
*/
|
|
||||||
void
|
void
|
||||||
group_sticky_toggle_enter(struct client_ctx *cc)
|
group_toggle_membership_enter(struct client_ctx *cc)
|
||||||
{
|
{
|
||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
struct group_ctx *gc = sc->group_active;
|
struct group_ctx *gc = sc->group_active;
|
||||||
@@ -183,7 +180,7 @@ group_sticky_toggle_enter(struct client_ctx *cc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
group_sticky_toggle_exit(struct client_ctx *cc)
|
group_toggle_membership_leave(struct client_ctx *cc)
|
||||||
{
|
{
|
||||||
cc->flags &= ~CLIENT_HIGHLIGHT;
|
cc->flags &= ~CLIENT_HIGHLIGHT;
|
||||||
client_draw_border(cc);
|
client_draw_border(cc);
|
||||||
|
2
kbfunc.c
2
kbfunc.c
@@ -438,7 +438,7 @@ kbfunc_client_grouptoggle(struct client_ctx *cc, union arg *arg)
|
|||||||
XGrabKeyboard(X_Dpy, cc->win, True,
|
XGrabKeyboard(X_Dpy, cc->win, True,
|
||||||
GrabModeAsync, GrabModeAsync, CurrentTime);
|
GrabModeAsync, GrabModeAsync, CurrentTime);
|
||||||
|
|
||||||
group_sticky_toggle_enter(cc);
|
group_toggle_membership_enter(cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -174,7 +174,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg)
|
|||||||
void
|
void
|
||||||
mousefunc_client_grouptoggle(struct client_ctx *cc, union arg *arg)
|
mousefunc_client_grouptoggle(struct client_ctx *cc, union arg *arg)
|
||||||
{
|
{
|
||||||
group_sticky_toggle_enter(cc);
|
group_toggle_membership_enter(cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user