changeset 3146:1e84040729c8

Updated button numbering in grab event
author unexist
date Mon, 28 Nov 2011 20:28:17 +0100
parents ed7353359a60
children 6a7ce3fceff6
files src/subtle/event.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/event.c	Mon Nov 28 20:22:17 2011 +0100
+++ b/src/subtle/event.c	Mon Nov 28 20:28:17 2011 +0100
@@ -526,7 +526,7 @@
             return;
           }
 
-        code  = XK_Pointer_Button1 + ev->xbutton.button - 1; ///< Build button number
+        code  = XK_Pointer_Button1 + ev->xbutton.button; ///< Build button number
         state = ev->xbutton.state;
 
         subSubtleLogDebugEvents("Grab: type=mouse, win=%#lx\n",