Christian J. Robinson wrote: > Attached is a small patch that adds a v:windowid variable which is set > whenever an X11 based GUI is running; it is 0 in all other cases. > > The reason I wrote this patch is that I wanted to be able to automate > maximizing newly started gVim windows under X, and it's MUCH easier to > accomplish this if gVim can tell me its window ID. > > An example usage of v:windowid would be to start a gVim instance under > X and type: > > :echo system('xwininfo -id ' . v:windowid)
I suppose it's a useful addition. Can you move the declarations close to the call? Reduces the number of #ifdefs. Also, I don't think they need to be initialized. -- Edison's greatest achievement came in 1879, when he invented the electric company. Edison's design was a brilliant adaptation of the simple electrical circuit: the electric company sends electricity through a wire to a customer, then immediately gets the electricity back through another wire /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php