2 #define I3__FILE__ "ewmh.c"
30 if (ws == focused_ws) {
31 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE,
root,
48 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE,
root,
68 xcb_delete_property(
conn,
root, A__NET_WORKAREA);
78 XCB_PROP_MODE_REPLACE,
80 A__NET_CLIENT_LIST_STACKING,
92 xcb_atom_t supported_atoms[] = {
93 #define xmacro(atom) A_ ## atom,
94 #include "atoms.xmacro"
103 xcb_window_t child_window = xcb_generate_id(
conn);
106 XCB_COPY_FROM_PARENT,
111 XCB_WINDOW_CLASS_INPUT_ONLY,
112 XCB_COPY_FROM_PARENT,
115 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE, child_window, A__NET_SUPPORTING_WM_CHECK,
XCB_ATOM_WINDOW, 32, 1, &child_window);
116 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE, child_window, A__NET_WM_NAME, A_UTF8_STRING, 8, strlen(
"i3"),
"i3");
117 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE,
root, A__NET_SUPPORTING_WM_CHECK,
XCB_ATOM_WINDOW, 32, 1, &child_window);
120 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE,
root, A__NET_WM_NAME, A_UTF8_STRING, 8, strlen(
"i3"),
"i3");
122 xcb_change_property(
conn, XCB_PROP_MODE_REPLACE,
root, A__NET_SUPPORTED,
XCB_ATOM_ATOM, 32, 18, supported_atoms);