From 1a3d59ddfaf9951ddbd5b335b4550a65a9648df1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 28 May 2008 07:27:12 +0200 Subject: [PATCH] [xutil] Add support to mouse button 8 and 9 Signed-off-by: Julien Danjou --- common/xutil.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/xutil.c b/common/xutil.c index c7f2354ac..8c1447acf 100644 --- a/common/xutil.c +++ b/common/xutil.c @@ -547,6 +547,12 @@ xutil_keymask_fromstr(const char *keyname) #ifndef XCB_BUTTON_INDEX_7 #define XCB_BUTTON_INDEX_7 7 #endif +#ifndef XCB_BUTTON_INDEX_8 +#define XCB_BUTTON_INDEX_7 8 +#endif +#ifndef XCB_BUTTON_INDEX_9 +#define XCB_BUTTON_INDEX_7 9 +#endif /** Link a name to a mouse button symbol */ typedef struct @@ -572,6 +578,8 @@ xutil_button_fromint(int button) { 5, XCB_BUTTON_INDEX_5 }, { 6, XCB_BUTTON_INDEX_6 }, { 7, XCB_BUTTON_INDEX_7 } + { 8, XCB_BUTTON_INDEX_8 } + { 9, XCB_BUTTON_INDEX_9 } }; if(button >= 1 && button <= countof(mouse_button_list))