dont ungrab/grab all the mouse bindings every time a new one is added. just do it once on startup.
This commit is contained in:
parent
39b2f712aa
commit
68e8dea93d
1 changed files with 1 additions and 4 deletions
|
@ -348,8 +348,6 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
grab_all_clients(FALSE);
|
|
||||||
|
|
||||||
/* when there are no modifiers in the binding, then the action cannot
|
/* when there are no modifiers in the binding, then the action cannot
|
||||||
be interactive */
|
be interactive */
|
||||||
if (!state && action->data.any.interactive) {
|
if (!state && action->data.any.interactive) {
|
||||||
|
@ -364,13 +362,12 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact,
|
||||||
b->actions[mact] = g_slist_append(NULL, action);
|
b->actions[mact] = g_slist_append(NULL, action);
|
||||||
bound_contexts[context] = g_slist_append(bound_contexts[context], b);
|
bound_contexts[context] = g_slist_append(bound_contexts[context], b);
|
||||||
|
|
||||||
grab_all_clients(TRUE);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mouse_startup(gboolean reconfig)
|
void mouse_startup(gboolean reconfig)
|
||||||
{
|
{
|
||||||
|
grab_all_clients(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mouse_shutdown(gboolean reconfig)
|
void mouse_shutdown(gboolean reconfig)
|
||||||
|
|
Loading…
Reference in a new issue