]> Dogcows Code - chaz/openbox/blobdiff - plugins/mouse/translate.c
remove that fancy new leftHanded option, it should be done via xmodmap instead
[chaz/openbox] / plugins / mouse / translate.c
index c73235958126ac9ab86230d3ce5434a7f6357a24..b774f785526a05e623965ec632678b6e57dc3a9a 100644 (file)
@@ -1,4 +1,5 @@
 #include "../../kernel/openbox.h"
+#include "mouse.h"
 #include <glib.h>
 #include <string.h>
 #include <stdlib.h>
@@ -50,7 +51,7 @@ gboolean translate_button(char *str, guint *state, guint *button)
     else if (!g_ascii_strcasecmp("Right", l)) *button = 3;
     else if (!g_ascii_strcasecmp("Up", l)) *button = 4;
     else if (!g_ascii_strcasecmp("Down", l)) *button = 5;
-    else *button = atoi(l);
+    else if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6);
     if (!*button) {
        g_warning("Invalid button '%s' in pointer binding.", l);
        goto translation_fail;
This page took 0.024351 seconds and 4 git commands to generate.