diff options
author | runge <runge> | 2007-09-11 20:15:38 +0000 |
---|---|---|
committer | runge <runge> | 2007-09-11 20:15:38 +0000 |
commit | 115e935f72b58e72598c7fccf17364d6cd2fa5a1 (patch) | |
tree | 1ce24590ac497725cb977dfc08ee363773928e89 /x11vnc/userinput.c | |
parent | 6a6d26a74701179672d59bfd153cc1a2e92e96bd (diff) | |
download | libtdevnc-115e935f72b58e72598c7fccf17364d6cd2fa5a1.tar.gz libtdevnc-115e935f72b58e72598c7fccf17364d6cd2fa5a1.zip |
x11vnc: fix wireframe crash under -clip. Add -redirect for
VNC redir. -rawfb nullbig, randbig, solid, swirl, etc.
FD_XDM mode to find_display. -listdpy. Add enlightenment.
Xvnc.redirect FINDDISPLAY-vnc_redirect. -xvnc, -xvnc_redirect,
-svc_xvnc. AUTO_PORT.
Diffstat (limited to 'x11vnc/userinput.c')
-rw-r--r-- | x11vnc/userinput.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c index ecd71e7..bc6a16c 100644 --- a/x11vnc/userinput.c +++ b/x11vnc/userinput.c @@ -4385,6 +4385,19 @@ if (db) fprintf(stderr, " frame: x: %d y: %d w: %d h: %d px: %d py: %d fr if (! try_it && wireframe_mod_state()) { try_it = 1; } + if (try_it && clipshift) { + sraRegionPtr r1, r2; + int xc = off_x + coff_x; + int yc = off_y + coff_y; + r1 = sraRgnCreateRect(x, y, x+w, y+h); + r2 = sraRgnCreateRect(xc, yc, xc+dpy_x, yc+dpy_y); + if (!sraRgnAnd(r1, r2)) { +if (db) fprintf(stderr, "OUTSIDE CLIPSHIFT\n"); + try_it = 0; + } + sraRgnDestroy(r1); + sraRgnDestroy(r2); + } if (! try_it) { if (db) fprintf(stderr, "INTERIOR\n"); #ifdef MACOSX |