From: Dana Jansens Date: Wed, 4 Jun 2003 22:48:38 +0000 (+0000) Subject: remove that fancy new leftHanded option, it should be done via xmodmap instead X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a865fe603fb9843b2f7d7c4db259fd97dc3915b5;p=chaz%2Fopenbox remove that fancy new leftHanded option, it should be done via xmodmap instead --- diff --git a/data/rc3 b/data/rc3 index 22748aab..bc1b16ba 100644 --- a/data/rc3 +++ b/data/rc3 @@ -111,7 +111,6 @@ 3 200 - no diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c index 1afc43e6..5bd76caa 100644 --- a/plugins/mouse/mouse.c +++ b/plugins/mouse/mouse.c @@ -13,7 +13,6 @@ static int threshold; static int dclicktime; -gboolean mouse_lefthand; /* @@ -36,8 +35,6 @@ static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d) threshold = parse_int(doc, n); if ((n = parse_find_node("doubleClickTime", node))) dclicktime = parse_int(doc, n); - if ((n = parse_find_node("leftHanded", node))) - mouse_lefthand = parse_bool(doc, n); n = parse_find_node("context", node); while (n) { @@ -101,7 +98,6 @@ void plugin_setup_config() { threshold = 3; dclicktime = 200; - mouse_lefthand = FALSE; parse_register("mouse", parse_xml, NULL); } diff --git a/plugins/mouse/mouse.h b/plugins/mouse/mouse.h index 83ce9a77..408ae964 100644 --- a/plugins/mouse/mouse.h +++ b/plugins/mouse/mouse.h @@ -18,8 +18,6 @@ typedef struct { GSList *actions[NUM_MOUSEACTION]; /* lists of Action pointers */ } MouseBinding; -extern gboolean mouse_lefthand; - gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact, Action *action); diff --git a/plugins/mouse/translate.c b/plugins/mouse/translate.c index d849ed44..b774f785 100644 --- a/plugins/mouse/translate.c +++ b/plugins/mouse/translate.c @@ -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);