summaryrefslogtreecommitdiff
path: root/src/track.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2010-08-30 15:57:25 -0400
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2010-08-30 16:24:10 -0400
commit053f2685e59f8ea419d91f0d42d19d0ab5a88c50 (patch)
treeee3487f45ba6c4fe7f1db1f1e3b679c06c4a6c3c /src/track.c
parente5b98b215f5e5183ec29b8f40070d45fc83c29da (diff)
Change vchan to use grants
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 */