int
win_proto(Window w)
{
- Atom *protocols;
+ unsigned char *protocols;
long res;
int protos = 0;
int i;
- res = win_property(w, wm_atom[WMProtocols], XA_ATOM, 20L,
- ((unsigned char **) &protocols));
+ res = win_property(w, wm_atom[WMProtocols], XA_ATOM, 20L, &protocols);
if(res <= 0) {
return protos;
}
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
}
+void
+run(void *aux)
+{
+ spawn(dpy, aux);
+}
+
+void
+quit(void *aux)
+{
+ running = False;
+}
+
int
main(int argc, char *argv[])
{