diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-09 18:12:55 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-09 18:12:55 +0000 |
| commit | 26cd1bf949d0460b754fe3b1ae7f06bd4b2535ee (patch) | |
| tree | 7f0dacc3a9a8e0311bade104a60f14eb3a39fb0d /src/managers/input/InputManager.cpp | |
| parent | 18a35b140681767e055bb78d268efafab8664f90 (diff) | |
input: fix minor default cursor reset conditions
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 32a9fbae..9072f27a 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -69,6 +69,8 @@ void CInputManager::sendMotionEventsToFocused() { const auto LOCAL = getMouseCoordsInternal() - (PWINDOW ? PWINDOW->m_vRealPosition.goal() : (PLS ? Vector2D{PLS->geometry.x, PLS->geometry.y} : Vector2D{})); + m_bEmptyFocusCursorSet = false; + wlr_seat_pointer_notify_enter(g_pCompositor->m_sSeat.seat, g_pCompositor->m_pLastFocus, LOCAL.x, LOCAL.y); wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, now.tv_sec * 1000 + now.tv_nsec / 10000000, LOCAL.x, LOCAL.y); } |
