Mercurial > vim
comparison src/gui.c @ 2609:758822790b43 v7.3.031
updated for version 7.3.031
Problem: Can't pass the X window ID to another application.
Solution: Add v:windowid. (Christian J. Robinson, Lech Lorens)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 20 Oct 2010 19:17:48 +0200 |
parents | 2c5e70e2858f |
children | 951641b8784d |
comparison
equal
deleted
inserted
replaced
2608:7d8af31066c8 | 2609:758822790b43 |
---|---|
103 | 103 |
104 vim_free(old_term); | 104 vim_free(old_term); |
105 | 105 |
106 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) | 106 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) |
107 if (gui.in_use) | 107 if (gui.in_use) |
108 { | |
109 # ifdef FEAT_EVAL | |
110 Window x11_window; | |
111 Display *x11_display; | |
112 | |
113 if (gui_get_x11_windis(&x11_window, &x11_display) == OK) | |
114 set_vim_var_nr(VV_WINDOWID, (long)x11_window); | |
115 # endif | |
116 | |
108 /* Display error messages in a dialog now. */ | 117 /* Display error messages in a dialog now. */ |
109 display_errors(); | 118 display_errors(); |
119 } | |
110 #endif | 120 #endif |
111 | 121 |
112 #if defined(MAY_FORK) && !defined(__QNXNTO__) | 122 #if defined(MAY_FORK) && !defined(__QNXNTO__) |
113 /* | 123 /* |
114 * Quit the current process and continue in the child. | 124 * Quit the current process and continue in the child. |