summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-10-20 19:17:48 +0200
committerBram Moolenaar <Bram@vim.org>2010-10-20 19:17:48 +0200
commit727c876b7869050d5da4f4d3dba975350bdbd7d8 (patch)
tree338efeb6d6eb7681b55eb35622067982e1a82dbd /src/gui.c
parent483c5d80a708a81edd96f8241c231a29e5c58a2f (diff)
updated for version 7.3.031v7.3.031
Problem: Can't pass the X window ID to another application. Solution: Add v:windowid. (Christian J. Robinson, Lech Lorens)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 6029e3b7c0..89d8d5a883 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -105,8 +105,18 @@ gui_start()
#if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11)
if (gui.in_use)
+ {
+# ifdef FEAT_EVAL
+ Window x11_window;
+ Display *x11_display;
+
+ if (gui_get_x11_windis(&x11_window, &x11_display) == OK)
+ set_vim_var_nr(VV_WINDOWID, (long)x11_window);
+# endif
+
/* Display error messages in a dialog now. */
display_errors();
+ }
#endif
#if defined(MAY_FORK) && !defined(__QNXNTO__)