Set the I3_SOCKET_PATH atom to the expanded path.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2011-03-20 11:34:34 -03:00
committed by Michael Stapelberg
parent 99ce340fea
commit 6d8784af98
4 changed files with 14 additions and 6 deletions

View File

@ -783,8 +783,8 @@ void x_set_name(Con *con, const char *name) {
*/
void x_set_i3_atoms() {
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A_I3_SOCKET_PATH, A_UTF8_STRING, 8,
(config.ipc_socket_path != NULL ? strlen(config.ipc_socket_path) : 0),
config.ipc_socket_path);
(current_socketpath == NULL ? 0 : strlen(current_socketpath)),
current_socketpath);
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, A_I3_CONFIG_PATH, A_UTF8_STRING, 8,
strlen(current_configpath), current_configpath);
}