mirror of
https://github.com/swaywm/sway.git
synced 2026-07-09 00:06:15 -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue