[PATCH] Use xf86SetIntOption instead of xf86SetBoolOption for integer configuration values in right mouse button emulation code

Jools Wills jools at oxfordinspire.co.uk
Sun Oct 30 16:19:21 PDT 2011


Signed-off-by: Jools Wills <jools at oxfordinspire.co.uk>
---
 src/emuThird.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/emuThird.c b/src/emuThird.c
index a65c24e..d89fd9e 100644
--- a/src/emuThird.c
+++ b/src/emuThird.c
@@ -279,11 +279,11 @@ Evdev3BEmuPreInit(InputInfoPtr pInfo)
     emu3B->timeout = xf86SetIntOption(pInfo->options,
                                       "EmulateThirdButtonTimeout",
                                       1000);
-    emu3B->button = xf86SetBoolOption(pInfo->options,
+    emu3B->button = xf86SetIntOption(pInfo->options,
                                       "EmulateThirdButtonButton",
                                       3);
     /* FIXME: this should be auto-configured based on axis ranges */
-    emu3B->threshold = xf86SetBoolOption(pInfo->options,
+    emu3B->threshold = xf86SetIntOption(pInfo->options,
                                          "EmulateThirdButtonMoveThreshold",
                                          DEFAULT_MOVE_THRESHOLD);
     /* allocate now so we don't allocate in the signal handler */
-- 
1.7.5.4


--------------070206090904090607010907--


More information about the xorg-devel mailing list