summaryrefslogtreecommitdiff
path: root/src/managers/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-28 17:57:24 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-28 17:57:24 +0200
commit4b985d3e3805fe9b9d751010146313d78257141b (patch)
treea10ea6d5cb7fbb98cee48b5d7de078ab48af0324 /src/managers/InputManager.cpp
parent51172129d7e5513e9ac268fe8f8a7659970998ac (diff)
fix crash when yanking mouse before init
Diffstat (limited to 'src/managers/InputManager.cpp')
-rw-r--r--src/managers/InputManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp
index 2853924d..2ba9dc06 100644
--- a/src/managers/InputManager.cpp
+++ b/src/managers/InputManager.cpp
@@ -23,6 +23,9 @@ void CInputManager::onMouseWarp(wlr_pointer_motion_absolute_event* e) {
void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
+ if (!g_pCompositor->m_bReadyToProcess)
+ return;
+
// update stuff
updateDragIcon();