From 1ac1ff457ab8ef1ae6a8f2ab17ee7965adfa729f Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 20 Aug 2025 13:01:31 +0200 Subject: touch: detach from pointer input this detaches touch from pointer input. Touch should not affect where your cursor is, and it doesn't make much sense for it to move when we use touch --- src/managers/input/InputManager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/input/InputManager.hpp') diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp index 73a0dc48..7a0a308f 100644 --- a/src/managers/input/InputManager.hpp +++ b/src/managers/input/InputManager.hpp @@ -116,7 +116,7 @@ class CInputManager { bool isLocked(); Vector2D getMouseCoordsInternal(); - void refocus(); + void refocus(std::optional overridePos = std::nullopt); bool refocusLastWindow(PHLMONITOR pMonitor); void simulateMouseMovement(); void sendMotionEventsToFocused(); @@ -244,7 +244,7 @@ class CInputManager { uint32_t m_capabilities = 0; - void mouseMoveUnified(uint32_t, bool refocus = false, bool mouse = false); + void mouseMoveUnified(uint32_t, bool refocus = false, bool mouse = false, std::optional overridePos = std::nullopt); void recheckMouseWarpOnMouseInput(); SP ensureTabletToolPresent(SP); -- cgit v1.2.3