[xutil] Add support to mouse button 8 and 9

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-28 07:27:12 +02:00
parent 99f6ff1d45
commit 1a3d59ddfa
1 changed files with 8 additions and 0 deletions

View File

@ -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))