summaryrefslogtreecommitdiff
path: root/src/gui_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-24 15:38:44 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-24 15:38:44 +0100
commit88e484bf1b0afb5f2dec44f19335729578ace66a (patch)
treeb6b2c2f3bd3f879f7240b4abc4bbba53156faa2d /src/gui_x11.c
parent5ad075c0735d3d8b97708d17c22de8facb15f997 (diff)
downloadvim-git-88e484bf1b0afb5f2dec44f19335729578ace66a.tar.gz
patch 7.4.938v7.4.938
Problem: X11 and GTK have moure mouse buttons than Vim supports. Solution: Recognize more mouse buttons. (Benoit Pierre, closes #498)
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 276930728..18a580590 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -1127,11 +1127,16 @@ gui_x11_mouse_cb(w, dud, event, dum)
gui_x11_timer_cb, &timed_out);
switch (event->xbutton.button)
{
+ /* keep in sync with gui_gtk_x11.c */
case Button1: button = MOUSE_LEFT; break;
case Button2: button = MOUSE_MIDDLE; break;
case Button3: button = MOUSE_RIGHT; break;
case Button4: button = MOUSE_4; break;
case Button5: button = MOUSE_5; break;
+ case 6: button = MOUSE_7; break;
+ case 7: button = MOUSE_6; break;
+ case 8: button = MOUSE_X1; break;
+ case 9: button = MOUSE_X2; break;
default:
return; /* Unknown button */
}