Skip to content

Commit

Permalink
set bindm handler to "mouse" like upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jun 2, 2024
1 parent 72c3d14 commit 53c3f67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53c3f67

Please sign in to comment.