mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-27 10:45:59 +01:00
Change workspace wheel scrolling direction
This commit is contained in:
parent
8f62f6d4b0
commit
776ca3baf2
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ void CInputManager::onMouseWheel(wlr_pointer_axis_event* e) {
|
||||||
if (wlr_keyboard_get_modifiers(PKEYBOARD) == (uint32_t)g_pConfigManager->getInt("general:main_mod_internal") &&
|
if (wlr_keyboard_get_modifiers(PKEYBOARD) == (uint32_t)g_pConfigManager->getInt("general:main_mod_internal") &&
|
||||||
e->source == WLR_AXIS_SOURCE_WHEEL && e->orientation == WLR_AXIS_ORIENTATION_VERTICAL) {
|
e->source == WLR_AXIS_SOURCE_WHEEL && e->orientation == WLR_AXIS_ORIENTATION_VERTICAL) {
|
||||||
|
|
||||||
if (e->delta > 0) {
|
if (e->delta < 0) {
|
||||||
g_pKeybindManager->m_mDispatchers["workspace"]("-1");
|
g_pKeybindManager->m_mDispatchers["workspace"]("-1");
|
||||||
} else {
|
} else {
|
||||||
g_pKeybindManager->m_mDispatchers["workspace"]("+1");
|
g_pKeybindManager->m_mDispatchers["workspace"]("+1");
|
||||||
|
|
Loading…
Reference in a new issue