summaryrefslogtreecommitdiffstats
path: root/x11vnc/x11vnc.c
diff options
context:
space:
mode:
authorrunge <runge>2006-08-10 21:51:23 +0000
committerrunge <runge>2006-08-10 21:51:23 +0000
commit816d7e06ad813ba24b0f68d67c53d35b66cc86d8 (patch)
treee4520d064587db1a477fbf463c4372ae8b51e239 /x11vnc/x11vnc.c
parent0bc50a9da9c63e6ab86c219ce88c3e92eafb9eb5 (diff)
downloadlibtdevnc-816d7e06ad813ba24b0f68d67c53d35b66cc86d8.tar.gz
libtdevnc-816d7e06ad813ba24b0f68d67c53d35b66cc86d8.zip
x11vnc: first pass at touchscreens via uinput.
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r--x11vnc/x11vnc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c
index b31f585..ce8b352 100644
--- a/x11vnc/x11vnc.c
+++ b/x11vnc/x11vnc.c
@@ -3234,8 +3234,6 @@ int main(int argc, char* argv[]) {
rfb_desktop_name = strdup(argv_vnc[argc_vnc-1]);
}
- initialize_pipeinput();
-
/*
* Create the XImage corresponding to the display framebuffer.
*/
@@ -3243,6 +3241,12 @@ int main(int argc, char* argv[]) {
fb0 = initialize_xdisplay_fb();
/*
+ * In some cases (UINPUT touchscreens) we need the dpy_x dpy_y
+ * to initialize pipeinput. So we do it after fb is created.
+ */
+ initialize_pipeinput();
+
+ /*
* n.b. we do not have to X_LOCK any X11 calls until watch_loop()
* is called since we are single-threaded until then.
*/