+
+ /* EWMH properties */
+ XChangeProperty(dpy, barwin, netatom[NetWMCheck], XA_WINDOW, 32,
+ PropModeReplace, (unsigned char *) &barwin, 1);
+ /* HACK: dwm identifies itself as LookingGlass to workaround the XToolkit bug of Sun JDK */
+ XChangeProperty(dpy, barwin, netatom[NetWMName], utf8string, 8,
+ PropModeReplace, (unsigned char *) "LG3D", 4);
+ XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32,
+ PropModeReplace, (unsigned char *) &barwin, 1);
+ XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
+ PropModeReplace, (unsigned char *) netatom, NetLast);