I guess it's too late to add this to Vim 7.3, but attached is a very
simple patch that enables <X1Mouse> and <X2Mouse> under GTK/Gnome.
It appears GDK does not provide defines for GDK_BUTTON8_MASK /
GDK_BUTTON9_MASK, so this patch does not support <X1Drag> /
<X1Release> / <X2Drag> / <X2Release>. Nor for multiple clicks
(<2-X1Mouse>, etc.)
I am not certain that these defines are what is necessary--or all that
is necessary--to get these working, since I am not exactly a C or GTK
expert.
Keyboard modifiers such as <M-X1Mouse> do appear to work.
- Christian
--
An optimist invented an airplane; a pessimist a parachute.
Christian J. Robinson <[email protected]> http://christianrobinson.name/
--
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
diff -r 06a44c4eb3e5 src/gui_gtk_x11.c
--- src/gui_gtk_x11.c Sun Aug 08 21:39:46 2010 +0200
+++ src/gui_gtk_x11.c Sun Aug 08 15:35:58 2010 -0600
@@ -1661,6 +1661,12 @@
case 3:
button = MOUSE_RIGHT;
break;
+ case 8:
+ button = MOUSE_X1;
+ break;
+ case 9:
+ button = MOUSE_X2;
+ break;
default:
return FALSE; /* Unknown button */
}