summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-09 18:59:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-09 18:59:31 +0200
commitd4aa83af1d691fdabbc8e6aab36db2c96ea4d4b6 (patch)
treeb2388947080bf130e2fcb7da283d91895e3ae63a /src/globals.h
parenteae1b91fea74842000fc055afc74fe2e7934c6ee (diff)
patch 8.1.1307: cannot reconnect to the X server after it restartedv8.1.1307
Problem: Cannot reconnect to the X server after it restarted. Solution: Add the :xrestore command. (Adrian Kocis, closes #844)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/globals.h b/src/globals.h
index 1a055d6085..09ac6b5e80 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1279,9 +1279,14 @@ EXTERN linenr_T printer_page_num;
#endif
#ifdef FEAT_XCLIPBOARD
-EXTERN char *xterm_display INIT(= NULL); /* xterm display name; points
- into argv[] */
-EXTERN Display *xterm_dpy INIT(= NULL); /* xterm display pointer */
+// xterm display name
+EXTERN char *xterm_display INIT(= NULL);
+
+// whether xterm_display was allocated, when FALSE it points into argv[]
+EXTERN int xterm_display_allocated INIT(= FALSE);
+
+// xterm display pointer
+EXTERN Display *xterm_dpy INIT(= NULL);
#endif
#if defined(FEAT_XCLIPBOARD) || defined(FEAT_GUI_X11)
EXTERN XtAppContext app_context INIT(= (XtAppContext)NULL);