mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Add screen_ctx to group_ctx, and populate on init.
This commit is contained in:
parent
3d12b6d1d9
commit
5b46f0f7d8
1
calmwm.h
1
calmwm.h
@ -203,6 +203,7 @@ TAILQ_HEAD(cycle_entry_q, client_ctx);
|
|||||||
|
|
||||||
struct group_ctx {
|
struct group_ctx {
|
||||||
TAILQ_ENTRY(group_ctx) entry;
|
TAILQ_ENTRY(group_ctx) entry;
|
||||||
|
struct screen_ctx *sc;
|
||||||
struct client_ctx_q clients;
|
struct client_ctx_q clients;
|
||||||
char *name;
|
char *name;
|
||||||
int num;
|
int num;
|
||||||
|
1
group.c
1
group.c
@ -124,6 +124,7 @@ group_init(struct screen_ctx *sc)
|
|||||||
|
|
||||||
for (i = 0; i < CALMWM_NGROUPS; i++) {
|
for (i = 0; i < CALMWM_NGROUPS; i++) {
|
||||||
gc = xcalloc(1, sizeof(*gc));
|
gc = xcalloc(1, sizeof(*gc));
|
||||||
|
gc->sc = sc;
|
||||||
TAILQ_INIT(&gc->clients);
|
TAILQ_INIT(&gc->clients);
|
||||||
gc->name = xstrdup(num_to_name[i]);
|
gc->name = xstrdup(num_to_name[i]);
|
||||||
gc->num = i;
|
gc->num = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user