+ xcb_atom_t A__NET_SUPPORTING_WM_CHECK;
+ xcb_intern_atom_cookie_t nswc_cookie = xcb_intern_atom(conn, 0, strlen("_NET_SUPPORTING_WM_CHECK"), "_NET_SUPPORTING_WM_CHECK");
+ xcb_intern_atom_reply_t *nswc_reply = xcb_intern_atom_reply(conn, nswc_cookie, NULL);
+ if (nswc_reply == NULL) {
+ ELOG("Could not intern atom _NET_SUPPORTING_WM_CHECK\n");
+ exit(-1);
+ }
+ A__NET_SUPPORTING_WM_CHECK = nswc_reply->atom;
+ free(nswc_reply);
+
+ supporting_wm_reply = xcb_get_property_reply(
+ conn, xcb_get_property(conn, false, root, A__NET_SUPPORTING_WM_CHECK, XCB_ATOM_WINDOW, 0, 32), NULL);
+ xcb_window_t *supporting_wm_win = NULL;
+ if (supporting_wm_reply == NULL || xcb_get_property_value_length(supporting_wm_reply) == 0) {
+ DLOG("Could not determine EWMH support window.\n");
+ } else {
+ supporting_wm_win = xcb_get_property_value(supporting_wm_reply);
+ }
+