diff options
author | runge <runge> | 2006-12-29 07:21:37 +0000 |
---|---|---|
committer | runge <runge> | 2006-12-29 07:21:37 +0000 |
commit | 833f06025fbd2fa8d4d83ccf8ab068c8060663de (patch) | |
tree | 1b20fdc2575d12b66e28d6e608dd54b3cacb2766 /x11vnc/xwrappers.c | |
parent | e4a397ed13a2c6eb9d2da7870165e7ecdc67f461 (diff) | |
download | libtdevnc-833f06025fbd2fa8d4d83ccf8ab068c8060663de.tar.gz libtdevnc-833f06025fbd2fa8d4d83ccf8ab068c8060663de.zip |
x11vnc -ncache on by default for beta test. fix -nofb & -rawfb modes.
Diffstat (limited to 'x11vnc/xwrappers.c')
-rw-r--r-- | x11vnc/xwrappers.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/x11vnc/xwrappers.c b/x11vnc/xwrappers.c index 4c6982b..a7ecba0 100644 --- a/x11vnc/xwrappers.c +++ b/x11vnc/xwrappers.c @@ -318,7 +318,8 @@ XImage *XCreateImage_wr(Display *disp, Visual *visual, unsigned int depth, #if NO_X11 nox11_exit(1); - if (!disp || !visual || !depth || !format || !offset || !data || !width || !height || !width || !bitmap_pad || !bytes_per_line) {} + if (!disp || !visual || !depth || !format || !offset || !data || !width + || !height || !width || !bitmap_pad || !bytes_per_line) {} return NULL; #else if (overlay) { @@ -632,16 +633,16 @@ void XTRAP_FakeKeyEvent_wr(Display* dpy, KeyCode key, Bool down, /* unused vars warning: */ if (key || down || delay) {} -#if LIBVNCSERVER_HAVE_LIBXTRAP +# if LIBVNCSERVER_HAVE_LIBXTRAP XESimulateXEventRequest(trap_ctx, down ? KeyPress : KeyRelease, key, 0, 0, 0); if (debug_keyboard) { upup_downdown_warning(key, down); } keycode_state[(int) key] = down ? 1 : 0; -#else +# else DEBUG_SKIPPED_INPUT(debug_keyboard, "keyboard: no-XTRAP-build"); -#endif +# endif #endif /* NO_X11 */ } @@ -1112,7 +1113,8 @@ Bool XQueryPointer_wr(Display *display, Window w, Window *root_return, Window *child_return, int *root_x_return, int *root_y_return, int *win_x_return, int *win_y_return, unsigned int *mask_return) { #if NO_X11 - if (!display || !w || !root_return || !child_return || !root_x_return || !root_y_return || !win_x_return || !win_y_return || !mask_return) {} + if (!display || !w || !root_return || !child_return || !root_x_return + || !root_y_return || !win_x_return || !win_y_return || !mask_return) {} return False; #else Bool rc; @@ -1163,7 +1165,8 @@ Status XQueryTree_wr(Display *display, Window w, Window *root_return, } #endif #if NO_X11 - if (!display || !w || !root_return || !parent_return || !children_return || !nchildren_return) {} + if (!display || !w || !root_return || !parent_return + || !children_return || !nchildren_return) {} return (Status) 0; #else if (! display) { |