From 53c3f67e062aa1d116345d007126467bf9a4e4ce Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 2 Jun 2024 12:58:46 +0200 Subject: [PATCH] set bindm handler to "mouse" like upstream --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index db3f96e..bfb0b3d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,11 +54,13 @@ Hyprlang::CParseResult onNewBind(const char* K, const char* V) { const auto dispatcher = vars[2]; const auto dispatcherArgs = vars[3]; + const auto mouse = std::string("bindm") == K; + g_pGestureManager->internalBinds.emplace_back(SKeybind{ .key = key, - .handler = dispatcher, + .handler = mouse ? "mouse" : dispatcher, .arg = dispatcherArgs, - .mouse = std::string("bindm") == K, + .mouse = mouse, }); return result;