diff options
Diffstat (limited to 'source/i3-support.c')
-rw-r--r-- | source/i3-support.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/i3-support.c b/source/i3-support.c index 713a29ac..9b932678 100644 --- a/source/i3-support.c +++ b/source/i3-support.c @@ -119,12 +119,7 @@ int i3_support_initialize ( xcb_connection_t *xcb_connection ) i3_support_free_internals (); // Get atom for I3_SOCKET_PATH - xcb_intern_atom_cookie_t cookie = xcb_intern_atom ( xcb_connection, FALSE, strlen ( "I3_SOCKET_PATH" ), "I3_SOCKET_PATH" ); - xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply ( xcb_connection, cookie, NULL ); - if ( reply != NULL ) { - // Get the i3 path property. - i3_socket_path = window_get_text_prop ( xcb_connection, xcb_screen->root, reply->atom ); - } + i3_socket_path = window_get_text_prop ( xcb_connection, xcb_screen->root, netatoms[I3_SOCKET_PATH]); // If we find it, go into i3 mode. return ( i3_socket_path != NULL ) ? TRUE : FALSE; } |