add mouse_scroll_workspaces bar setting

This commit is contained in:
Zandr Martin 2017-01-11 09:06:21 -05:00
parent 84358788aa
commit 5090c131db
No known key found for this signature in database
GPG key ID: AA2BB8EF77F7BBDC
9 changed files with 48 additions and 5 deletions

View file

@ -95,6 +95,10 @@ static void mouse_button_notify(struct window *window, int x, int y,
static void mouse_scroll_notify(struct window *window, enum scroll_direction direction) {
sway_log(L_DEBUG, "Mouse wheel scrolled %s", direction == SCROLL_UP ? "up" : "down");
if (!swaybar.config->mouse_scroll_workspaces) {
return;
}
if (!swaybar.config->wrap_scroll) {
// Find output this window lives on
int i;

View file

@ -40,6 +40,7 @@ struct config *init_config() {
config->sep_symbol = NULL;
config->strip_workspace_numbers = false;
config->binding_mode_indicator = true;
config->mouse_scroll_workspaces = true;
config->wrap_scroll = false;
config->workspace_buttons = true;
config->all_outputs = false;