This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin gvim needs weird ritual to past from Windows clipboard


I installed cygwin's gvim on Windows 7.  I found that pasting from the
Windows clipboard into gvim doesn't work by clicking the middle mouse
button unless I go through a weird ritual that I discovered by
accident.  If I don't do this, I get "E353: Nothing in register *".

First, I have to highlight some text using gvim.

Second, I copy from Windows.  Finally I paste into gvim using the
middle mouse button (Shift-Insert never works).

I am working in a locked down environment where arranging to run
setup/install executables take months to arrange, and opening firewall
ports might never happen.  At first, I thought the problem might be
related to an X11 error message about ports being blocked, but then I
discovered the above recipe.

Given the above clue, can anyone suggest what the cause might be, and
possible ways to make the ritual unnecessary?  Here is the diagnostic
data that I am able to find.

Relevant messages show up in /var/log/xwin/XWin.0.log
-----------------------------------------------------
They show up after considerable delay:

   [279434.560] winProcSetSelectionOwner - OpenClipboard () failed:
    00000005

   [279434.560] winClipboardFlushXEvents - SelectionRequest -
    OpenClipboard () failed: 00000005

   [279434.560] winClipboardFlushXEvents - SelectionRequest -
    OpenClipboard () failed: 00000005

   [279448.880] winProcSetSelectionOwner - OpenClipboard () failed:
    00000005

   [279673.007] winProcSetSelectionOwner - OpenClipboard () failed:
    00000005

   [279754.143] winProcSetSelectionOwner - OpenClipboard () failed:
    00000005

gvim version
------------
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 31 2012 02:25:38)
Included patches: 1-646
Compiled by Cygwin Ports <cygwin-xfreeATcygwin.com>
Huge version with GTK2 GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv +cscope +cursorbind
+cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags
+eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+float +folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand +jumplist +keymap +langmap +libcall +linebreak
+lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
+mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
-mouse_sysmouse +mouse_xterm +mouse_urxvt +mouse_sgr +multi_byte
+multi_lang -mzscheme +netbeans_intg +path_extra -perl
+persistent_undo +postscript +printer +profile -python -python3
+quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows
+writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard
-xterm_save

   <...snip...>

Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng14
-I/usr/include/ncursesw  -ggdb -O2 -pipe
-fdebug-prefix-map=/usr/src/ports/vim/vim-7.3.646-1/build=
                                          /usr/src/debug/vim-7.3.646-1
-fdebug-prefix-map=/usr/src/ports/vim/vim-7.3.646-1/src/vim73=
                                          /usr/src/debug/vim-7.3.646-1
-fno-strength-reduce
-fdebug-prefix-map=/usr/src/ports/vim/vim-7.3.646-1/build/gui=
                                          /usr/src/debug/vim-7.3.646-1
Linking: gcc   -L/usr/lib/ncursesw -o vim.exe     -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0
-lgio-2.0 -lXext -lXfixes -lcairo -lpixman-1 -lxcb-shm -lxcb-render
-lXrender -lX11 -lxcb -lXau -lXdmcp -lpng14 -lpango-1.0 -lm
-lfontconfig -lexpat -lfreetype -lz -lbz2 -lgmodule-2.0 -lgobject-2.0
-lffi -lglib-2.0 -lintl -liconv -lpcre    -lSM -lICE -lXpm  -lXt -lX11
-lXdmcp -lSM -lICE  -lm -lncurses -lelf  -liconv -lintl

Relevant cygwin packages
-------------------------
I basically looked at packages that contained "x" and vetted out
unlikely names like "tex...".

Package                               Version              Status
xauth                                 1.0.7-1              OK
xcursor-themes                        1.0.3-1              OK
xextproto                             7.2.1-2              OK
xf86-video-dummy                      0.3.6-1              OK
xf86-video-nested                     0.1.0-2              OK
xfontsel                              1.0.4-1              OK
xineramaproto                         1.2.1-1              OK
xinit                                 1.3.2-1              OK
xkbcomp                               1.2.4-1              OK
xkeyboard-config                      2.7-1                OK
xmodmap                               1.0.7-1              OK
xorg-docs                             1.7-1                OK
xorg-server                           1.13.1-1             OK
xorg-server-common                    1.13.1-1             OK
xpdf                                  3.03-3               OK
xproto                                7.0.23-3             OK
xrdb                                  1.0.9-1              OK
xterm                                 287-1                OK
xxd                                   7.3.646-1            OK
xz                                    5.0.2_20110517-1     OK

Package                               Version              Status
libX11-devel                          1.5.0-1              OK
libX11-xcb1                           1.5.0-1              OK
libX11_6                              1.5.0-1              OK
libXau-devel                          1.0.7-1              OK
libXau6                               1.0.7-1              OK
libXaw3d7                             1.5D-10              OK
libXaw3d8                             1.6.2-1              OK
libXaw7                               1.0.11-1             OK
libxcb-devel                          1.9-1                OK
libxcb-glx0                           1.9-1                OK
libxcb-icccm4                         0.3.9-1              OK
libxcb-image0                         0.3.9-1              OK
libxcb-render-devel                   1.9-1                OK
libxcb-render-util0                   0.3.8-1              OK
libxcb-render0                        1.9-1                OK
libxcb-shm-devel                      1.9-1                OK
libxcb-shm0                           1.9-1                OK
libxcb-util1                          0.3.9-1              OK
libxcb1                               1.9-1                OK
libXcomposite-devel                   0.4.3-1              OK
libXcomposite1                        0.4.3-1              OK
libXcursor-devel                      1.1.13-1             OK
libXcursor1                           1.1.13-1             OK
libXdamage-devel                      1.1.3-1              OK
libXdamage1                           1.1.3-1              OK
libXdmcp-devel                        1.1.1-1              OK
libXdmcp6                             1.1.1-1              OK
libXext-devel                         1.3.1-1              OK
libXext6                              1.3.1-1              OK
libXfixes-devel                       5.0-1                OK
libXfixes3                            5.0-1                OK
libXft-devel                          2.3.1-1              OK
libXft2                               2.3.1-1              OK
libXi-devel                           1.6.1-1              OK
libXi6                                1.6.1-1              OK
libXinerama-devel                     1.1.2-1              OK
libXinerama1                          1.1.2-1              OK
libxkbfile1                           1.0.8-1              OK
libXm2                                0.95.2-2             OK
libXm4                                2.3.4-1              OK
libxml2                               2.8.0-1              OK
libXmu6                               1.1.1-1              OK
libXmuu1                              1.1.1-1              OK
libXpm4                               3.5.10-1             OK
libXrandr-devel                       1.4.0-1              OK
libXrandr2                            1.4.0-1              OK
libXrender-devel                      0.9.7-1              OK
libXrender1                           0.9.7-1              OK
libXt-devel                           1.1.3-1              OK
libXt6                                1.1.3-1              OK
libXtst6                              1.2.1-1              OK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]