aboutsummaryrefslogtreecommitdiff
path: root/i3-msg
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-11-22 15:48:45 +0100
committerMichael Stapelberg <michael@stapelberg.de>2013-11-22 15:48:45 +0100
commitd3beff23395356ec71fcc35a3b802163e12df73e (patch)
treeca45a904db22ed53b46ba98631ec4cdef83e6a4c /i3-msg
parentca39289e3e333f1abe63c155e6516375920a0df2 (diff)
downloadi3-d3beff23395356ec71fcc35a3b802163e12df73e.tar.gz
i3-d3beff23395356ec71fcc35a3b802163e12df73e.zip
make i3bar use libi3’s root_atom_contents()
This removes code duplication, which will be useful for a subsequent commit. Furthermore, we now don’t open X11 connections unnecessarily in some corner cases.
Diffstat (limited to 'i3-msg')
-rw-r--r--i3-msg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c
index a1428fb8..935edc04 100644
--- a/i3-msg/main.c
+++ b/i3-msg/main.c
@@ -188,7 +188,7 @@ int main(int argc, char *argv[]) {
}
if (socket_path == NULL)
- socket_path = root_atom_contents("I3_SOCKET_PATH");
+ socket_path = root_atom_contents("I3_SOCKET_PATH", NULL, 0);
/* Fall back to the default socket path */
if (socket_path == NULL)