diff options
author | runge <runge> | 2006-07-18 00:40:00 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-18 00:40:00 +0000 |
commit | 901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (patch) | |
tree | 5ccae39a0740461dde0b2875d3b1e8398b6e1357 /x11vnc/userinput.c | |
parent | 6e2fa292297af38a12ab6a0bac1a2873b2fb289c (diff) | |
download | libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.tar.gz libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.zip |
x11vnc: enable --without-x builds for -rawfb only binaries.
Diffstat (limited to 'x11vnc/userinput.c')
-rw-r--r-- | x11vnc/userinput.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c index d3dec60..5405432 100644 --- a/x11vnc/userinput.c +++ b/x11vnc/userinput.c @@ -97,6 +97,9 @@ int get_wm_frame_pos(int *px, int *py, int *x, int *y, int *w, int *h, unsigned int mask; RAWFB_RET(0) +#if NO_X11 + return 0; +#else ret = XQueryPointer(dpy, rootwin, &r, &c, &rootx, &rooty, &wx, &wy, &mask); @@ -127,6 +130,7 @@ int get_wm_frame_pos(int *px, int *py, int *x, int *y, int *w, int *h, } return 1; +#endif /* NO_X11 */ } static int scrollcopyrect_top, scrollcopyrect_bot; @@ -299,6 +303,7 @@ static void parse_wireframe_str(char *wf) { XColor cdef; Colormap cmap; if (dpy && (bpp == 32 || bpp == 16)) { +#if !NO_X11 cmap = DefaultColormap (dpy, scr); if (XParseColor(dpy, cmap, str, &cdef) && XAllocColor(dpy, cmap, &cdef)) { @@ -315,6 +320,7 @@ static void parse_wireframe_str(char *wf) { wireframe_shade = n; ok = 1; } +#endif } if (ok) { ; |