summaryrefslogtreecommitdiffstats
path: root/x11vnc/ssltools.h
diff options
context:
space:
mode:
authorrunge <runge>2007-08-19 19:13:12 +0000
committerrunge <runge>2007-08-19 19:13:12 +0000
commit222ecab5cae7add1186bbfe3bf50608b0d90b0c1 (patch)
tree6c0580cc8c4dd6fffd6492e67017cc10738e89c4 /x11vnc/ssltools.h
parenta69ed666eb66fc9a4d93a2fd9496c99d82e0d4d3 (diff)
downloadlibtdevnc-222ecab5cae7add1186bbfe3bf50608b0d90b0c1.tar.gz
libtdevnc-222ecab5cae7add1186bbfe3bf50608b0d90b0c1.zip
x11vnc: better -xkb tie-breaking for up keystrokes. Add Xsrv/FD_XSRV custom server to FINDCREATEDISPLAY list.
Diffstat (limited to 'x11vnc/ssltools.h')
-rw-r--r--x11vnc/ssltools.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/x11vnc/ssltools.h b/x11vnc/ssltools.h
index 2bf5157..33576ff 100644
--- a/x11vnc/ssltools.h
+++ b/x11vnc/ssltools.h
@@ -1208,6 +1208,15 @@ char create_display[] =
" server $have_Xvnc :$N -geometry $geom -depth $depth\n"
"}\n"
"\n"
+"try_Xsrv() {\n"
+" if [ \"X$FD_XSRV\" = \"X\" ]; then\n"
+" return\n"
+" fi\n"
+"\n"
+" server $FD_XSRV :$N -geometry $geom -depth $depth\n"
+"}\n"
+"\n"
+"\n"
"try_Xvfb() {\n"
" if [ \"X$have_Xvfb\" = \"X\" ]; then\n"
" return\n"
@@ -1427,13 +1436,15 @@ char create_display[] =
" fi\n"
" curr_try=`echo \"$curr_try\" | sed -e 's/[+.-]xdmcp//'`\n"
" \n"
-" if echo \"$curr_try\" | grep -iw \"Xdummy\" > /dev/null; then\n"
+" if echo \"$curr_try\" | grep -iw \"^Xdummy\" > /dev/null; then\n"
" try_Xdummy\n"
-" elif echo \"$curr_try\" | grep -iw \"Xvfb\" > /dev/null; then\n"
+" elif echo \"$curr_try\" | grep -iw \"^Xvfb\" > /dev/null; then\n"
" try_Xvfb\n"
-" elif echo \"$curr_try\" | grep -iw \"Xvnc\" > /dev/null; then\n"
+" elif echo \"$curr_try\" | grep -iw \"^Xvnc\" > /dev/null; then\n"
" try_Xvnc\n"
-" elif echo \"$curr_try\" | grep -iw \"X\" > /dev/null; then\n"
+" elif echo \"$curr_try\" | grep -iw \"^Xsrv\" > /dev/null; then\n"
+" try_Xsrv\n"
+" elif echo \"$curr_try\" | grep -iw \"^X\" > /dev/null; then\n"
" try_X\n"
" fi\n"
" if [ \"X$result\" = \"X1\" ]; then\n"