diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2010-08-30 15:57:25 -0400 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2010-08-30 16:24:10 -0400 |
commit | 053f2685e59f8ea419d91f0d42d19d0ab5a88c50 (patch) | |
tree | ee3487f45ba6c4fe7f1db1f1e3b679c06c4a6c3c /src/track.c | |
parent | e5b98b215f5e5183ec29b8f40070d45fc83c29da (diff) |
Change vchan to use grants
Diffstat (limited to 'src/track.c')
-rw-r--r-- | src/track.c | 7 |
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 */ |