mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Stash wmname into conf.
This commit is contained in:
parent
a37606c63f
commit
d40820d3f3
2
calmwm.h
2
calmwm.h
@ -41,7 +41,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFFILE ".cwmrc"
|
||||
#define WMNAME "CWM"
|
||||
|
||||
#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
|
||||
#define MOUSEMASK (BUTTONMASK | PointerMotionMask)
|
||||
@ -290,6 +289,7 @@ struct conf {
|
||||
char *color[CWM_COLOR_NITEMS];
|
||||
char known_hosts[PATH_MAX];
|
||||
char *font;
|
||||
char *wmname;
|
||||
Cursor cursor[CF_NITEMS];
|
||||
};
|
||||
|
||||
|
2
conf.c
2
conf.c
@ -283,6 +283,7 @@ conf_init(struct conf *c)
|
||||
homedir, ".ssh/known_hosts");
|
||||
|
||||
c->font = xstrdup("sans-serif:pixelsize=14:bold");
|
||||
c->wmname = xstrdup("CWM");
|
||||
}
|
||||
|
||||
void
|
||||
@ -327,6 +328,7 @@ conf_clear(struct conf *c)
|
||||
free(c->color[i]);
|
||||
|
||||
free(c->font);
|
||||
free(c->wmname);
|
||||
}
|
||||
|
||||
void
|
||||
|
4
xutil.c
4
xutil.c
@ -115,8 +115,8 @@ xu_ewmh_net_supported_wm_check(struct screen_ctx *sc)
|
||||
XChangeProperty(X_Dpy, w, ewmh[_NET_SUPPORTING_WM_CHECK],
|
||||
XA_WINDOW, 32, PropModeReplace, (unsigned char *)&w, 1);
|
||||
XChangeProperty(X_Dpy, w, ewmh[_NET_WM_NAME],
|
||||
cwmh[UTF8_STRING], 8, PropModeReplace, (unsigned char *)WMNAME,
|
||||
strlen(WMNAME));
|
||||
cwmh[UTF8_STRING], 8, PropModeReplace,
|
||||
(unsigned char *)Conf.wmname, strlen(Conf.wmname));
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user