From d5ccca4fdbdf53eec011210f4bbbdb20049aa12e Mon Sep 17 00:00:00 2001 From: Darksome Date: Thu, 21 Jul 2022 20:31:38 +0300 Subject: [PATCH] Consider scroll as a 'pressed' key --- src/managers/KeybindManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 7fb4f2bd..3f723565 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -119,9 +119,9 @@ bool CKeybindManager::onAxisEvent(wlr_pointer_axis_event* e) { bool found = false; if (e->source == WLR_AXIS_SOURCE_WHEEL && e->orientation == WLR_AXIS_ORIENTATION_VERTICAL) { if (e->delta < 0) { - found = g_pKeybindManager->handleKeybinds(MODS, "mouse_down", 0, 0, false, 0); + found = g_pKeybindManager->handleKeybinds(MODS, "mouse_down", 0, 0, true, 0); } else { - found = g_pKeybindManager->handleKeybinds(MODS, "mouse_up", 0, 0, false, 0); + found = g_pKeybindManager->handleKeybinds(MODS, "mouse_up", 0, 0, true, 0); } }