Ewmh: Support _NET_SUPPORTING_WM_CHECK Class.

This commit is contained in:
Martin Duquesnoy 2009-05-08 23:33:40 +02:00
parent 798623f7ff
commit 86f593b0d0

View File

@ -44,6 +44,7 @@ ewmh_init_hints(void)
{
int i = 1, showing_desk = 0;
char root_name[] = "WMFS "WMFS_VERSION;
char class[] = "wmfs";
long pid = (long)getpid();
/* EWMH hints */
@ -101,6 +102,8 @@ ewmh_init_hints(void)
XChangeProperty(dpy, ROOT, net_atom[net_wm_name], net_atom[utf8_string], 8,
PropModeReplace, (uchar*)&root_name, strlen(root_name));
XChangeProperty(dpy, ROOT, ATOM("WM_CLASS"), XA_STRING, 8,
PropModeReplace, (uchar*)&class, strlen(class));
/* Set _NET_WM_PID */
XChangeProperty(dpy, ROOT, net_atom[net_wm_pid], XA_CARDINAL, 32,