1517 selscreen = XQueryPointer(dpy, root, &w, &w, &d, &d, &d, &d, &mask); |
1517 selscreen = XQueryPointer(dpy, root, &w, &w, &d, &d, &d, &d, &mask); |
1518 |
1518 |
1519 /* EWMH properties */ |
1519 /* EWMH properties */ |
1520 XChangeProperty(dpy, barwin, netatom[NetWMCheck], XA_WINDOW, 32, |
1520 XChangeProperty(dpy, barwin, netatom[NetWMCheck], XA_WINDOW, 32, |
1521 PropModeReplace, (unsigned char *) &barwin, 1); |
1521 PropModeReplace, (unsigned char *) &barwin, 1); |
1522 /* HACK: dwm identifies itself as compiz to workaround the XToolkit bug of Sun JDK */ |
1522 /* HACK: dwm identifies itself as LookingGlass to workaround the XToolkit bug of Sun JDK */ |
1523 XChangeProperty(dpy, barwin, netatom[NetWMName], utf8string, 8, |
1523 XChangeProperty(dpy, barwin, netatom[NetWMName], utf8string, 8, |
1524 PropModeReplace, (unsigned char *) "compiz", 6); |
1524 PropModeReplace, (unsigned char *) "LG3D", 4); |
1525 XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32, |
1525 XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32, |
1526 PropModeReplace, (unsigned char *) &barwin, 1); |
1526 PropModeReplace, (unsigned char *) &barwin, 1); |
1527 XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, |
1527 XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, |
1528 PropModeReplace, (unsigned char *) netatom, NetLast); |
1528 PropModeReplace, (unsigned char *) netatom, NetLast); |
1529 } |
1529 } |