Implemented configurable floating scroll behavior

This commit is contained in:
Mykyta Holubakha 2016-05-07 20:49:51 +03:00
parent 6abdc07559
commit 0423c41a0f
4 changed files with 63 additions and 5 deletions

View file

@ -743,6 +743,16 @@ bool handle_pointer_scroll(wlc_handle view, uint32_t time, const struct wlc_modi
arrange_windows(&root_container, -1, -1);
break;
}
case FSB_CUSTOM:
{
int amount = (int)_amount[0];
if (amount > 0) {
handle_command(config->fsb_up);
} else if (amount < 0) {
handle_command(config->fsb_down);
}
break;
}
}
}
return EVENT_PASSTHROUGH;