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);
}
/* Array of GSList*s of PointerBinding*s. */
static GSList *bound_contexts[NUM_CONTEXTS];
-static void grab_for_client(Client *client, gboolean grab)
+static void grab_for_client(ObClient *client, gboolean grab)
{
int i;
GSList *it;
}
}
-static void fire_button(MouseAction a, Context context, Client *c, guint state,
+static void fire_button(MouseAction a, Context context, ObClient *c, guint state,
guint button, int x, int y)
{
GSList *it;
}
}
-static void fire_motion(MouseAction a, Context context, Client *c,
+static void fire_motion(MouseAction a, Context context, ObClient *c,
guint state, guint button, int x_root, int y_root,
guint32 corner)
{
context = frame_context(e->data.x.client,
e->data.x.e->xbutton.window);
- if (!button) {
- px = e->data.x.e->xbutton.x_root;
- py = e->data.x.e->xbutton.y_root;
- button = e->data.x.e->xbutton.button;
- state = e->data.x.e->xbutton.state;
- }
+ px = e->data.x.e->xbutton.x_root;
+ py = e->data.x.e->xbutton.y_root;
+ button = e->data.x.e->xbutton.button;
+ state = e->data.x.e->xbutton.state;
fire_button(MouseAction_Press, context,
e->data.x.client, e->data.x.e->xbutton.state,