summaryrefslogtreecommitdiff
path: root/src/track.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/track.c')
-rw-r--r--src/track.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/track.c b/src/track.c
index 8a7a218..2f21dee 100644
--- a/src/track.c
+++ b/src/track.c
@@ -306,8 +306,8 @@ eventloop(xcb_connection_t *conn, xcb_window_t root)
}
static int
-setup_vchan(void) {
- ctrl = libvchan_server_init(LINPICKER_VPORT);
+setup_vchan(int domain) {
+ ctrl = libvchan_server_init(domain, LINPICKER_VPORT);
if (!ctrl) {
perror("libvchan_init_server");
return -1;
@@ -335,7 +335,8 @@ main(int argc, char **argv)
sigaction(SIGINT, &action, NULL);
sigaction(SIGHUP, &action, NULL);
- if (setup_vchan() < 0)
+ // XXX hardcoding domains is BAD BAD
+ if (setup_vchan(1) < 0)
return 1;
/* init X stuffs */