diff options
author | runge <runge> | 2007-02-10 21:52:26 +0000 |
---|---|---|
committer | runge <runge> | 2007-02-10 21:52:26 +0000 |
commit | 90d96b971f04b11fe1902091a94be94697738766 (patch) | |
tree | 8331ed14521fd8e7b997465d6f482d521f4537cb /x11vnc/unixpw.c | |
parent | 76720eb71bb18ec452ec1782af9f8b8d09e77efc (diff) | |
download | libtdevnc-90d96b971f04b11fe1902091a94be94697738766.tar.gz libtdevnc-90d96b971f04b11fe1902091a94be94697738766.zip |
x11vnc: watch textchat, etc in unixpw, implement kbdReleaseAllKeys, setSingleWindow, setServerInput. watch for OpenGL apps breaking XDAMAGE.
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r-- | x11vnc/unixpw.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c index 332d93a..91a8ec3 100644 --- a/x11vnc/unixpw.c +++ b/x11vnc/unixpw.c @@ -76,6 +76,8 @@ int unixpw_in_progress = 0; int unixpw_denied = 0; int unixpw_in_rfbPE = 0; int unixpw_login_viewonly = 0; +int unixpw_tightvnc_xfer_save = 0; +rfbBool unixpw_file_xfer_save = FALSE; time_t unixpw_last_try_time = 0; rfbClientPtr unixpw_client = NULL; @@ -1550,6 +1552,12 @@ void unixpw_accept(char *user) { unixpw_client->viewOnly = TRUE; } unixpw_in_progress = 0; + screen->permitFileTransfer = unixpw_file_xfer_save; + if ((filexfer = unixpw_tightvnc_xfer_save)) { +#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER + rfbRegisterTightVNCFileTransferExtension(); +#endif + } unixpw_client = NULL; mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0); if (macosx_console) { @@ -1590,6 +1598,12 @@ void unixpw_deny(void) { } unixpw_in_progress = 0; + screen->permitFileTransfer = unixpw_file_xfer_save; + if ((filexfer = unixpw_tightvnc_xfer_save)) { +#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER + rfbRegisterTightVNCFileTransferExtension(); +#endif + } unixpw_client = NULL; copy_screen(); } |