diff options
author | okan <okan> | 2009-12-07 21:20:52 +0000 |
---|---|---|
committer | okan <okan> | 2009-12-07 21:20:52 +0000 |
commit | 3e309894c1d0f6ff9302109d72a0ffb25612d537 (patch) | |
tree | e4827ad0cdacb639b43d5262e88a896fa4087fb5 /calmwm.h | |
parent | 46630531f876c8043756e6622ca8be9e578bb2fa (diff) | |
download | cwm-3e309894c1d0f6ff9302109d72a0ffb25612d537.tar.gz cwm-3e309894c1d0f6ff9302109d72a0ffb25612d537.tar.xz cwm-3e309894c1d0f6ff9302109d72a0ffb25612d537.zip |
introduce the beginnings of netwm support, minimally and correctly;
allows java to be happy, but additionally stops others from whinning about a non-netwm complaint wm. more to come. written a few times; this one includes a clever hack from oga@ to populate _NET_SUPPORTED. ok oga@
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h index d152f81..ca4eefb 100644 --- a/calmwm.h +++ b/calmwm.h @@ -29,6 +29,7 @@ #define MAX(x, y) ((x) > (y) ? (x) : (y)) #define CONFFILE ".cwmrc" +#define WMNAME "CWM" #define ChildMask (SubstructureRedirectMask|SubstructureNotifyMask) #define ButtonMask (ButtonPressMask|ButtonReleaseMask) @@ -384,6 +385,7 @@ void xu_setstate(struct client_ctx *, int); int xu_getstate(struct client_ctx *, int *); unsigned long xu_getcolor(struct screen_ctx *, char *); void xu_freecolor(struct screen_ctx *, unsigned long); +void xu_setwmname(struct screen_ctx *); int u_spawn(char *); void u_exec(char *); @@ -515,7 +517,17 @@ extern struct conf Conf; #define WM_PROTOCOLS cwm_atoms[3] #define _MOTIF_WM_HINTS cwm_atoms[4] #define _CWM_GRP cwm_atoms[5] -#define CWM_NO_ATOMS 6 +#define UTF8_STRING cwm_atoms[6] +/* + * please make all hints below this point netwm hints, starting with + * _NET_SUPPORTED. If you change other hints make sure you update + * CWM_NETWM_START + */ +#define _NET_SUPPORTED cwm_atoms[7] +#define _NET_SUPPORTING_WM_CHECK cwm_atoms[8] +#define _NET_WM_NAME cwm_atoms[9] +#define CWM_NO_ATOMS 10 +#define CWM_NETWM_START 7 extern Atom cwm_atoms[CWM_NO_ATOMS]; |