diff options
author | oga <oga> | 2009-12-11 17:51:42 +0000 |
---|---|---|
committer | oga <oga> | 2009-12-11 17:51:42 +0000 |
commit | b35cbf81d84c97e7c444aafe491597bd6db6cfab (patch) | |
tree | 185bdf2bf9abe166225ac24f10759bad29f82b78 /calmwm.h | |
parent | 9b04930f24bb3acc3626f442eff074b6b80821f3 (diff) | |
download | cwm-b35cbf81d84c97e7c444aafe491597bd6db6cfab.tar.gz cwm-b35cbf81d84c97e7c444aafe491597bd6db6cfab.tar.xz cwm-b35cbf81d84c97e7c444aafe491597bd6db6cfab.zip |
Implement _NET_DESKTOP_NAMES, this one was a bit tricky since thespec
says that a pager can change the property at any time (most need a clientmessage). So deal with property updates. Needed to shuffle some of the other code around since we can't just use shortcut_to_name[] everywhere now. ok okan@
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/calmwm.h b/calmwm.h index 22210aa..212434e 100644 --- a/calmwm.h +++ b/calmwm.h @@ -66,7 +66,6 @@ TAILQ_HEAD(client_ctx_q, client_ctx); struct group_ctx { TAILQ_ENTRY(group_ctx) entry; struct client_ctx_q clients; - const char *name; int shortcut; int hidden; int nhidden; @@ -101,6 +100,8 @@ struct screen_ctx { struct group_ctx groups[CALMWM_NGROUPS]; int group_hideall; struct group_ctx_q groupq; + char **group_names; + int group_nonames; }; TAILQ_HEAD(screen_ctx_q, screen_ctx); @@ -178,11 +179,10 @@ extern const char *shortcut_to_name[]; /* Autogroups */ struct autogroupwin { - TAILQ_ENTRY(autogroupwin) entry; - - char *class; - char *name; - char *group; + TAILQ_ENTRY(autogroupwin) entry; + char *class; + char *name; + int num; }; TAILQ_HEAD(autogroupwin_q, autogroupwin); @@ -475,6 +475,8 @@ void search_match_exec(struct menu_q *, struct menu_q *, char *); void group_init(struct screen_ctx *); +void group_make_autogroup(struct conf *, char *, int); +void group_update_names(struct screen_ctx *); void group_hidetoggle(struct screen_ctx *, int); void group_only(struct screen_ctx *, int); void group_cycle(struct screen_ctx *, int); @@ -538,7 +540,8 @@ extern struct conf Conf; #define _NET_DESKTOP_GEOMETRY cwm_atoms[15] #define _NET_VIRTUAL_ROOTS cwm_atoms[16] #define _NET_SHOWING_DESKTOP cwm_atoms[17] -#define CWM_NO_ATOMS 18 +#define _NET_DESKTOP_NAMES cwm_atoms[18] +#define CWM_NO_ATOMS 19 #define CWM_NETWM_START 7 extern Atom cwm_atoms[CWM_NO_ATOMS]; |