touch: fix touch swipe invert config (#7014)

This commit is contained in:
Leon 2024-07-24 10:59:50 +02:00 committed by GitHub
parent e2efecc24e
commit 2da3cfb422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ void CInputManager::onTouchDown(ITouch::SDownEvent e) {
// TODO: WORKSPACERULE.gapsOut.value_or() // TODO: WORKSPACERULE.gapsOut.value_or()
auto gapsOut = *PGAPSOUT; auto gapsOut = *PGAPSOUT;
static auto PBORDERSIZE = CConfigValue<Hyprlang::INT>("general:border_size"); static auto PBORDERSIZE = CConfigValue<Hyprlang::INT>("general:border_size");
static auto PSWIPEINVR = CConfigValue<Hyprlang::INT>("gestures:workspace_swipe_invert"); static auto PSWIPEINVR = CConfigValue<Hyprlang::INT>("gestures:workspace_swipe_touch_invert");
EMIT_HOOK_EVENT_CANCELLABLE("touchDown", e); EMIT_HOOK_EVENT_CANCELLABLE("touchDown", e);
auto PMONITOR = g_pCompositor->getMonitorFromName(!e.device->boundOutput.empty() ? e.device->boundOutput : ""); auto PMONITOR = g_pCompositor->getMonitorFromName(!e.device->boundOutput.empty() ? e.device->boundOutput : "");