mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Implemented configurable floating scroll behavior
This commit is contained in:
parent
6abdc07559
commit
0423c41a0f
4 changed files with 63 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue