Ewmh: Fix net_wm_name

This commit is contained in:
Martin Duquesnoy 2011-06-09 18:27:08 +02:00
parent 4e978c1824
commit bccd36d522

View File

@ -43,7 +43,7 @@ void
ewmh_init_hints(void)
{
int i = 1, s, j, showing_desk = 0;
char root_name[] = WMFS_VERSION;
char rootn[] = "wmfs-"WMFS_VERSION;
char class[] = "wmfs", st[64];
long pid = (long)getpid();
char systray_atom[48];
@ -126,7 +126,7 @@ ewmh_init_hints(void)
PropModeReplace, (uchar*)&ROOT, 1);
XChangeProperty(dpy, ROOT, net_atom[net_wm_name], net_atom[utf8_string], 8,
PropModeReplace, (uchar*)&root_name, strlen(root_name));
PropModeReplace, (uchar*)&rootn, strlen(rootn));
XChangeProperty(dpy, ROOT, ATOM("WM_CLASS"), XA_STRING, 8,
PropModeReplace, (uchar*)&class, strlen(class));