diff options
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r-- | x11vnc/x11vnc.c | 8 |
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. */ |