aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDarksome <[email protected]>2022-07-21 20:31:38 +0300
committerDarksome <[email protected]>2022-07-21 20:31:38 +0300
commitd5ccca4fdbdf53eec011210f4bbbdb20049aa12e (patch)
tree1e4f0f50fa588b0b97b4ce0a7a6c18e3da2c2eec
parentce508f1cdc5b504c16792eddb8b0a04b5dbba4d7 (diff)
downloadHyprland-d5ccca4fdbdf53eec011210f4bbbdb20049aa12e.tar.gz
Hyprland-d5ccca4fdbdf53eec011210f4bbbdb20049aa12e.zip
Consider scroll as a 'pressed' key
-rw-r--r--src/managers/KeybindManager.cpp4
1 files 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);
}
}