diff options
author | runge <runge> | 2008-06-01 03:36:47 +0000 |
---|---|---|
committer | runge <runge> | 2008-06-01 03:36:47 +0000 |
commit | 65b42bb85354cce814316a646a4a5ed6025a18e3 (patch) | |
tree | 7cac435d5e12f3e49c1e89d3987510afd66b5169 /x11vnc/xinerama.c | |
parent | 1983292eb0744ef708b0c01877713b59c42a2e13 (diff) | |
download | libtdevnc-65b42bb85354cce814316a646a4a5ed6025a18e3.tar.gz libtdevnc-65b42bb85354cce814316a646a4a5ed6025a18e3.zip |
x11vnc: support colormaps for depths other than 8. xinerama warppointer only if more than one subscreen.
Diffstat (limited to 'x11vnc/xinerama.c')
-rw-r--r-- | x11vnc/xinerama.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/x11vnc/xinerama.c b/x11vnc/xinerama.c index f1f919f..9097771 100644 --- a/x11vnc/xinerama.c +++ b/x11vnc/xinerama.c @@ -263,19 +263,19 @@ static void initialize_xinerama (void) { rfbLog("\n"); rfbLog("Xinerama is present and active (e.g. multi-head).\n"); - if (! use_xwarppointer && ! got_noxwarppointer) { - rfbLog("Xinerama: enabling -xwarppointer mode to try to correct\n"); - rfbLog("Xinerama: mouse pointer motion. XTEST+XINERAMA bug.\n"); - rfbLog("Xinerama: Use -noxwarppointer to force XTEST.\n"); - use_xwarppointer = 1; - } - /* n.b. change to XineramaGetData() someday */ xineramas = XineramaQueryScreens(dpy, &n); if (verbose) { rfbLog("Xinerama: number of sub-screens: %d\n", n); } + if (! use_xwarppointer && ! got_noxwarppointer && n > 1) { + rfbLog("Xinerama: enabling -xwarppointer mode to try to correct\n"); + rfbLog("Xinerama: mouse pointer motion. XTEST+XINERAMA bug.\n"); + rfbLog("Xinerama: Use -noxwarppointer to force XTEST.\n"); + use_xwarppointer = 1; + } + if (n == 1) { if (verbose) { rfbLog("Xinerama: no blackouts needed (only one" |