summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-09 19:38:39 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-09 19:38:39 +0200
commit09b130374df035188b34a36e55d6fdda935c7df8 (patch)
tree56777b555686dbdc808b6cfaaa812c3d8627f707 /src/managers/input/InputManager.cpp
parentb53c093b8846c8029954908a5620e82a91b6090b (diff)
unfocus tablets
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 775ee7b4..79d4f305 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -2,6 +2,7 @@
#include "../../Compositor.hpp"
void CInputManager::onMouseMoved(wlr_pointer_motion_event* e) {
+ unfocusAllTablets();
float sensitivity = g_pConfigManager->getFloat("general:sensitivity");
@@ -18,6 +19,8 @@ void CInputManager::onMouseMoved(wlr_pointer_motion_event* e) {
}
void CInputManager::onMouseWarp(wlr_pointer_motion_absolute_event* e) {
+ unfocusAllTablets();
+
wlr_cursor_warp_absolute(g_pCompositor->m_sWLRCursor, &e->pointer->base, e->x, e->y);
mouseMoveUnified(e->time_msec);