mirror of
https://github.com/swaywm/sway.git
synced 2026-05-01 06:46:25 -04:00
add mouse_scroll_workspaces bar setting
This commit is contained in:
parent
84358788aa
commit
5090c131db
9 changed files with 48 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue