Set the I3_SOCKET_PATH and I3_CONFIG_PATH atoms on the X11 root window

This commit is contained in:
Michael Stapelberg
2011-03-19 21:20:38 +01:00
parent 8b9aedd2bf
commit 65a3259b3c
4 changed files with 8 additions and 1 deletions

View File

@ -350,6 +350,10 @@ int main(int argc, char *argv[]) {
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A__NET_SUPPORTING_WM_CHECK, A_WINDOW, 32, 1, &root);
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A__NET_WM_NAME, A_UTF8_STRING, 8, strlen("i3"), "i3");
/* Set up i3 specific atoms like I3_SOCKET_PATH and I3_CONFIG_PATH */
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A_I3_SOCKET_PATH, A_UTF8_STRING, 8, strlen(config.ipc_socket_path), config.ipc_socket_path);
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A_I3_CONFIG_PATH, A_UTF8_STRING, 8, strlen(saved_configpath), saved_configpath);
keysyms = xcb_key_symbols_alloc(conn);
xcb_get_numlock_mask(conn);