Don't needlessly ungrab/grab the buttons

This commit is contained in:
Bastien Dejean 2016-04-10 22:12:22 +02:00
parent 81e5e72fa2
commit c6c52e240e

View file

@ -1393,10 +1393,7 @@ void set_setting(coordinates_t loc, char *name, char *value, FILE *rsp)
streq("pointer_action2", name) ||
streq("pointer_action3", name)) {
int index = name[14] - '1';
if (parse_pointer_action(value, &pointer_actions[index])) {
ungrab_buttons();
grab_buttons();
} else {
if (!parse_pointer_action(value, &pointer_actions[index])) {
fail(rsp, "config: %s: Invalid value: '%s'.\n", name, value);
return;
}