mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Don't needlessly ungrab/grab the buttons
This commit is contained in:
parent
81e5e72fa2
commit
c6c52e240e
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue