<mouse>
<dragThreshold>3</dragThreshold>
<doubleClickTime>200</doubleClickTime>
- <leftHanded>no</leftHanded>
<context name="frame">
<mousebind button="A-Left" action="drag">
static int threshold;
static int dclicktime;
-gboolean mouse_lefthand;
/*
<context name="Titlebar">
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) {
{
threshold = 3;
dclicktime = 200;
- mouse_lefthand = FALSE;
parse_register("mouse", parse_xml, NULL);
}
GSList *actions[NUM_MOUSEACTION]; /* lists of Action pointers */
} MouseBinding;
-extern gboolean mouse_lefthand;
-
gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact,
Action *action);
}
/* 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);