diff options
author | runge <runge> | 2006-06-18 23:59:45 +0000 |
---|---|---|
committer | runge <runge> | 2006-06-18 23:59:45 +0000 |
commit | 64e731a9da82e3cc614e274d6fca6f855d0359b7 (patch) | |
tree | 540bca0a021f3e74b768a747bc3d75435848ca0d /x11vnc/pointer.c | |
parent | 363ae71df0f25b018136d19eed20be954e1dd088 (diff) | |
download | libtdevnc-64e731a9da82e3cc614e274d6fca6f855d0359b7.tar.gz libtdevnc-64e731a9da82e3cc614e274d6fca6f855d0359b7.zip |
x11vnc: --grabkbd, -grabptr, -env, -allowedcmds, unixpw+WAIT user fred:options
Diffstat (limited to 'x11vnc/pointer.c')
-rw-r--r-- | x11vnc/pointer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c index 1ad10e9..30268e7 100644 --- a/x11vnc/pointer.c +++ b/x11vnc/pointer.c @@ -319,7 +319,7 @@ static void update_x11_pointer_position(int x, int y) { rc = set_cursor(x, y, get_which_cursor()); cursor_changes += rc; - last_event = last_input = last_pointer_input = time(0); + last_event = last_input = last_pointer_input = time(NULL); } void do_button_mask_change(int mask, int button) { @@ -390,7 +390,7 @@ void do_button_mask_change(int mask, int button) { static void update_x11_pointer_mask(int mask) { int snapped = 0, xr_mouse = 1, i; - last_event = last_input = last_pointer_input = time(0); + last_event = last_input = last_pointer_input = time(NULL); RAWFB_RET_VOID @@ -942,7 +942,7 @@ if (0) fprintf(stderr, "initialize_pipeinput: %s -- %s\n", pipeinput_str, p); set_child_info(); /* pipeinput */ - if (no_external_cmds) { + if (no_external_cmds || !cmd_ok("pipeinput")) { rfbLogEnable(1); rfbLog("cannot run external commands in -nocmds mode:\n"); rfbLog(" \"%s\"\n", p); |