MouseBinding *b = it->data;
for (i = 0; i < NUM_MOUSEACTION; ++i)
- action_free(b->action[i]);
+ if (b->action[i] != NULL)
+ action_free(b->action[i]);
g_free(b);
}
g_slist_free(data);
e->data.x.client, e->data.x.e->xbutton.state,
e->data.x.e->xbutton.button,
cx, cy, cw, ch, dx, dy, TRUE, corner);
+ drag = FALSE;
}
/* clicks are only valid if its released over the window */
b->state = state;
b->button = button;
for (i = 0; i < NUM_MOUSEACTION; ++i)
- if (i != mact)
- b->action[i] = NULL;
+ b->action[i] = NULL;
b->action[mact] = action;
g_datalist_id_set_data(&bound_contexts, context,
g_slist_append(g_datalist_id_get_data(&bound_contexts, context), b));