]> Dogcows Code - chaz/openbox/blobdiff - plugins/mouse/translate.c
missed prefix of define
[chaz/openbox] / plugins / mouse / translate.c
index d849ed4485ea6f622cbab24ddbfe03ccf2ebe5ea..aebe5557887717602efbf91b8e1607521b80b2bd 100644 (file)
@@ -1,4 +1,4 @@
-#include "../../kernel/openbox.h"
+#include "kernel/openbox.h"
 #include "mouse.h"
 #include <glib.h>
 #include <string.h>
@@ -46,9 +46,9 @@ gboolean translate_button(char *str, guint *state, guint *button)
     }
 
     /* figure out the button */
-    if (!g_ascii_strcasecmp("Left", l)) *button = mouse_lefthand ? 3 : 1;
+    if (!g_ascii_strcasecmp("Left", l)) *button = 1;
     else if (!g_ascii_strcasecmp("Middle", l)) *button = 2;
-    else if (!g_ascii_strcasecmp("Right", l)) *button = mouse_lefthand ? 1 : 3;
+    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 if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6);
This page took 0.024004 seconds and 4 git commands to generate.