From 1776a3a55f59052bd69509c889e4370973305f0d Mon Sep 17 00:00:00 2001 From: runge Date: Thu, 8 Jun 2006 23:06:26 +0000 Subject: x11vnc: -display WAIT:..., -users unixpw=, su_verify dpy command. --- x11vnc/xevents.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'x11vnc/xevents.c') diff --git a/x11vnc/xevents.c b/x11vnc/xevents.c index 25d9cd4..ab49f0b 100644 --- a/x11vnc/xevents.c +++ b/x11vnc/xevents.c @@ -454,7 +454,7 @@ static void grab_buster_watch(int parent, char *dstr) { } /* overwrite original dpy, we let orig connection sit unused. */ - dpy = XOpenDisplay(dstr); + dpy = XOpenDisplay_wr(dstr); if (!dpy) { fprintf(stderr, "grab_buster_watch: could not reopen: %s\n", dstr); @@ -518,7 +518,7 @@ void spawn_grab_buster(void) { RAWFB_RET_VOID - XCloseDisplay(dpy); + XCloseDisplay_wr(dpy); dpy = NULL; if ((pid = fork()) > 0) { @@ -539,7 +539,7 @@ void spawn_grab_buster(void) { exit(0); } - dpy = XOpenDisplay(dstr); + dpy = XOpenDisplay_wr(dstr); if (!dpy) { rfbLog("failed to reopen display %s in spawn_grab_buster\n", dstr); -- cgit v1.2.1