From dba5e098767b71bb017fa191cc3f07dc68437655 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 17 Sep 2006 18:08:23 +0000 Subject: x11vnc: -verbose, -connect_or_exit, -rfbport 0, print out SSL cert. --- x11vnc/xinerama.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'x11vnc/xinerama.c') diff --git a/x11vnc/xinerama.c b/x11vnc/xinerama.c index ddc2da7..8582dab 100644 --- a/x11vnc/xinerama.c +++ b/x11vnc/xinerama.c @@ -243,14 +243,18 @@ static void initialize_xinerama (void) { RAWFB_RET_VOID if (! XineramaQueryExtension(dpy, &ev, &er)) { - rfbLog("Xinerama: disabling: display does not support it.\n"); + if (verbose) { + rfbLog("Xinerama: disabling: display does not support it.\n"); + } xinerama = 0; xinerama_present = 0; return; } if (! XineramaIsActive(dpy)) { /* n.b. change to XineramaActive(dpy, window) someday */ - rfbLog("Xinerama: disabling: not active on display.\n"); + if (verbose) { + rfbLog("Xinerama: disabling: not active on display.\n"); + } xinerama = 0; xinerama_present = 0; return; @@ -259,11 +263,15 @@ static void initialize_xinerama (void) { /* n.b. change to XineramaGetData() someday */ xineramas = XineramaQueryScreens(dpy, &n); - rfbLog("Xinerama: number of sub-screens: %d\n", n); + if (verbose) { + rfbLog("Xinerama: number of sub-screens: %d\n", n); + } if (n == 1) { - rfbLog("Xinerama: no blackouts needed (only one" - " sub-screen)\n"); + if (verbose) { + rfbLog("Xinerama: no blackouts needed (only one" + " sub-screen)\n"); + } XFree(xineramas); return; /* must be OK w/o change */ } -- cgit v1.2.1