summaryrefslogtreecommitdiffstats
path: root/x11vnc.c
diff options
context:
space:
mode:
authordscho <dscho>2001-11-27 12:59:50 +0000
committerdscho <dscho>2001-11-27 12:59:50 +0000
commit0c2c50734aef08429fc882470592ceb8dca734c3 (patch)
tree02a922b3fb19ccf1ec3d77d29f830f8947379423 /x11vnc.c
parent3825ed9fb99d0626c57deffe19b825e9619fafe4 (diff)
downloadlibtdevnc-0c2c50734aef08429fc882470592ceb8dca734c3.tar.gz
libtdevnc-0c2c50734aef08429fc882470592ceb8dca734c3.zip
input works on other X11 servers than XFree86
Diffstat (limited to 'x11vnc.c')
-rw-r--r--x11vnc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11vnc.c b/x11vnc.c
index aaa4d27..12fc32e 100644
--- a/x11vnc.c
+++ b/x11vnc.c
@@ -247,7 +247,9 @@ int main(int argc,char** argv)
fprintf(stderr,"Couldn't open display!\n");
exit(2);
}
-
+
+ XTestGrabControl(dpy,True);
+
xscreen = DefaultScreen(dpy);
init_keycodes();
@@ -330,6 +332,7 @@ int main(int argc,char** argv)
maxMsecsToConnect -= screen->rfbDeferUpdateTime;
if(maxMsecsToConnect<0) {
fprintf(stderr,"Maximum time to connect reached. Exiting.\n");
+ XTestDiscard(dpy);
exit(2);
}