mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 15:25:58 +01:00
input: Stop propagating axis events after valid binds (#4059)
This commit is contained in:
parent
ab66fa430e
commit
cfd94c5b30
1 changed files with 4 additions and 2 deletions
|
@ -699,6 +699,9 @@ void CInputManager::onMouseWheel(wlr_pointer_axis_event* e) {
|
|||
|
||||
g_pCompositor->notifyIdleActivity();
|
||||
|
||||
if (!passEvent)
|
||||
return;
|
||||
|
||||
const auto MOUSECOORDS = g_pInputManager->getMouseCoordsInternal();
|
||||
const auto pWindow = g_pCompositor->vectorToWindowIdeal(MOUSECOORDS);
|
||||
|
||||
|
@ -713,7 +716,6 @@ void CInputManager::onMouseWheel(wlr_pointer_axis_event* e) {
|
|||
}
|
||||
}
|
||||
|
||||
if (passEvent)
|
||||
wlr_seat_pointer_notify_axis(g_pCompositor->m_sSeat.seat, e->time_msec, e->orientation, factor * e->delta, std::round(factor * e->delta_discrete), e->source);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue