+ for (a = protocols, n = 0; *a; ++a, ++n);
+ XChangeProperty(cwmcc_display, win, CWMCC_ATOM(client, wm_state),
+ CWMCC_ATOM(type, atom), 32, PropModeReplace,
+ (guchar*)protocols, n);
+}
+
+void cwmcc_client_get_wm_state(Window win, gulong *state)
+{