summaryrefslogtreecommitdiffstats
path: root/x11vnc/xrecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/xrecord.c')
-rw-r--r--x11vnc/xrecord.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/x11vnc/xrecord.c b/x11vnc/xrecord.c
index a15dc1c..81b319b 100644
--- a/x11vnc/xrecord.c
+++ b/x11vnc/xrecord.c
@@ -32,11 +32,13 @@ Display *rdpy_data = NULL; /* Data connection for RECORD */
Display *rdpy_ctrl = NULL; /* Control connection for RECORD */
Display *gdpy_ctrl = NULL;
+Display *gdpy_data = NULL;
int xserver_grabbed = 0;
int trap_record_xerror(Display *, XErrorEvent *);
void initialize_xrecord(void);
+void zerodisp_xrecord(void);
void shutdown_xrecord(void);
int xrecord_skip_keysym(rfbKeySym keysym);
int xrecord_skip_button(int new, int old);
@@ -57,7 +59,6 @@ static XRecordContext rc_grab;
static XRecordClientSpec rcs_grab;
#endif
static XErrorEvent *trapped_record_xerror_event;
-static Display *gdpy_data = NULL;
static void xrecord_grabserver(int start);
static int xrecord_vi_scroll_keysym(rfbKeySym keysym);
@@ -144,6 +145,13 @@ static void xrecord_grabserver(int start) {
}
}
+void zerodisp_xrecord(void) {
+ rdpy_data = NULL;
+ rdpy_ctrl = NULL;
+ gdpy_data = NULL;
+ gdpy_ctrl = NULL;
+}
+
void initialize_xrecord(void) {
use_xrecord = 0;
if (! xrecord_present) {