aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 76cae5e..f0d73ae 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2086,7 +2086,7 @@ setup(void)
XChangeProperty(dpy, wmcheckwin, netatom[NetWMCheck], XA_WINDOW, 32,
PropModeReplace, (unsigned char *) &wmcheckwin, 1);
XChangeProperty(dpy, wmcheckwin, netatom[NetWMName], utf8string, 8,
- PropModeReplace, (unsigned char *) "dwm", 3);
+ PropModeReplace, (unsigned char *) wmname, 3);
XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32,
PropModeReplace, (unsigned char *) &wmcheckwin, 1);
/* EWMH support per view */
@@ -2412,7 +2412,7 @@ updatebars(void)
.background_pixmap = ParentRelative,
.event_mask = ButtonPressMask|ExposureMask
};
- XClassHint ch = {"dwm", "dwm"};
+ XClassHint ch = {(char *)wmname, (char *)wmname};
for (m = mons; m; m = m->next) {
if (m->barwin)
continue;
@@ -3010,7 +3010,7 @@ resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst)
char *type;
XrmValue ret;
- snprintf(fullname, sizeof(fullname), "%s.%s", "dwm", name);
+ snprintf(fullname, sizeof(fullname), "%s.%s", wmname, name);
fullname[sizeof(fullname) - 1] = '\0';
XrmGetResource(db, fullname, "*", &type, &ret);