remove that fancy new leftHanded option, it should be done via xmodmap instead
This commit is contained in:
parent
ae0d84721d
commit
a865fe603f
4 changed files with 2 additions and 9 deletions
1
data/rc3
1
data/rc3
|
@ -111,7 +111,6 @@
|
||||||
<mouse>
|
<mouse>
|
||||||
<dragThreshold>3</dragThreshold>
|
<dragThreshold>3</dragThreshold>
|
||||||
<doubleClickTime>200</doubleClickTime>
|
<doubleClickTime>200</doubleClickTime>
|
||||||
<leftHanded>no</leftHanded>
|
|
||||||
|
|
||||||
<context name="frame">
|
<context name="frame">
|
||||||
<mousebind button="A-Left" action="drag">
|
<mousebind button="A-Left" action="drag">
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
static int threshold;
|
static int threshold;
|
||||||
static int dclicktime;
|
static int dclicktime;
|
||||||
gboolean mouse_lefthand;
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
<context name="Titlebar">
|
<context name="Titlebar">
|
||||||
|
@ -36,8 +35,6 @@ static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d)
|
||||||
threshold = parse_int(doc, n);
|
threshold = parse_int(doc, n);
|
||||||
if ((n = parse_find_node("doubleClickTime", node)))
|
if ((n = parse_find_node("doubleClickTime", node)))
|
||||||
dclicktime = parse_int(doc, n);
|
dclicktime = parse_int(doc, n);
|
||||||
if ((n = parse_find_node("leftHanded", node)))
|
|
||||||
mouse_lefthand = parse_bool(doc, n);
|
|
||||||
|
|
||||||
n = parse_find_node("context", node);
|
n = parse_find_node("context", node);
|
||||||
while (n) {
|
while (n) {
|
||||||
|
@ -101,7 +98,6 @@ void plugin_setup_config()
|
||||||
{
|
{
|
||||||
threshold = 3;
|
threshold = 3;
|
||||||
dclicktime = 200;
|
dclicktime = 200;
|
||||||
mouse_lefthand = FALSE;
|
|
||||||
parse_register("mouse", parse_xml, NULL);
|
parse_register("mouse", parse_xml, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ typedef struct {
|
||||||
GSList *actions[NUM_MOUSEACTION]; /* lists of Action pointers */
|
GSList *actions[NUM_MOUSEACTION]; /* lists of Action pointers */
|
||||||
} MouseBinding;
|
} MouseBinding;
|
||||||
|
|
||||||
extern gboolean mouse_lefthand;
|
|
||||||
|
|
||||||
gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact,
|
gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact,
|
||||||
Action *action);
|
Action *action);
|
||||||
|
|
||||||
|
|
|
@ -46,9 +46,9 @@ gboolean translate_button(char *str, guint *state, guint *button)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* figure out the 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("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("Up", l)) *button = 4;
|
||||||
else if (!g_ascii_strcasecmp("Down", l)) *button = 5;
|
else if (!g_ascii_strcasecmp("Down", l)) *button = 5;
|
||||||
else if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6);
|
else if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6);
|
||||||
|
|
Loading…
Reference in a new issue