diff options
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 | |||
743 | arrange_windows(&root_container, -1, -1); | 743 | arrange_windows(&root_container, -1, -1); |
744 | break; | 744 | break; |
745 | } | 745 | } |
746 | case FSB_CUSTOM: | ||
747 | { | ||
748 | int amount = (int)_amount[0]; | ||
749 | if (amount > 0) { | ||
750 | handle_command(config->fsb_up); | ||
751 | } else if (amount < 0) { | ||
752 | handle_command(config->fsb_down); | ||
753 | } | ||
754 | break; | ||
755 | } | ||
746 | } | 756 | } |
747 | } | 757 | } |
748 | return EVENT_PASSTHROUGH; | 758 | return EVENT_PASSTHROUGH; |