mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Make sure we cycle through existing client's group membership and set
the hidden state on the group; important to know group hidden state after a re-exec or restart of cwm (as easily seen in group menu).
This commit is contained in:
commit
6798e3dde3
1
calmwm.h
1
calmwm.h
@ -415,6 +415,7 @@ void group_init(struct screen_ctx *);
|
|||||||
void group_menu(struct screen_ctx *);
|
void group_menu(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_set_state(struct screen_ctx *);
|
||||||
void group_sticky(struct client_ctx *);
|
void group_sticky(struct client_ctx *);
|
||||||
void group_sticky_toggle_enter(struct client_ctx *);
|
void group_sticky_toggle_enter(struct client_ctx *);
|
||||||
void group_sticky_toggle_exit(struct client_ctx *);
|
void group_sticky_toggle_exit(struct client_ctx *);
|
||||||
|
9
group.c
9
group.c
@ -148,6 +148,15 @@ group_init(struct screen_ctx *sc)
|
|||||||
group_setactive(sc, 1);
|
group_setactive(sc, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
group_set_state(struct screen_ctx *sc)
|
||||||
|
{
|
||||||
|
struct group_ctx *gc;
|
||||||
|
|
||||||
|
TAILQ_FOREACH(gc, &sc->groupq, entry)
|
||||||
|
group_fix_hidden_state(gc);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
group_setactive(struct screen_ctx *sc, long idx)
|
group_setactive(struct screen_ctx *sc, long idx)
|
||||||
{
|
{
|
||||||
|
1
screen.c
1
screen.c
@ -69,6 +69,7 @@ screen_init(int which)
|
|||||||
XFree(wins);
|
XFree(wins);
|
||||||
}
|
}
|
||||||
screen_updatestackingorder(sc);
|
screen_updatestackingorder(sc);
|
||||||
|
group_set_state(sc);
|
||||||
|
|
||||||
if (HasRandr)
|
if (HasRandr)
|
||||||
XRRSelectInput(X_Dpy, sc->rootwin, RRScreenChangeNotifyMask);
|
XRRSelectInput(X_Dpy, sc->rootwin, RRScreenChangeNotifyMask);
|
||||||
|
Loading…
Reference in New Issue
Block a user