diff options
author | Mykyta Holubakha <[email protected]> | 2016-05-07 20:49:51 +0300 |
---|---|---|
committer | Mykyta Holubakha <[email protected]> | 2016-05-07 20:49:51 +0300 |
commit | 0423c41a0f9f8f84bde80e664e59e33e3b05e3d4 (patch) | |
tree | 0f168f873158653f9d42fb94c591b1d2e6450cd7 /sway/handlers.c | |
parent | 6abdc0755945a982638ce2341d2ed1f96a6c5e4e (diff) |
Implemented configurable floating scroll behavior
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index b82456e2..23c9985e 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -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; |