diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-29 14:15:08 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-29 14:15:08 +0200 |
| commit | 6ec16fdcdaf0ffa377db492a9d7d92bdd89044d9 (patch) | |
| tree | 79c333f8788e3d2c5ba52174e69b56e88c7d0e17 /src/managers/input/InputManager.cpp | |
| parent | 208864cba94eec4eb8df139fb215611ce42a2789 (diff) | |
damage drag and drop
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 85767e69..fe51c494 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -568,9 +568,12 @@ void CInputManager::updateDragIcon() { switch (g_pInputManager->m_sDrag.dragIcon->drag->grab_type) { case WLR_DRAG_GRAB_KEYBOARD: break; - case WLR_DRAG_GRAB_KEYBOARD_POINTER: + case WLR_DRAG_GRAB_KEYBOARD_POINTER: { + wlr_box box = {g_pInputManager->m_sDrag.pos.x - 2, g_pInputManager->m_sDrag.pos.y - 2, g_pInputManager->m_sDrag.dragIcon->surface->current.width + 4, g_pInputManager->m_sDrag.dragIcon->surface->current.height + 4}; + g_pHyprRenderer->damageBox(&box); g_pInputManager->m_sDrag.pos = g_pInputManager->getMouseCoordsInternal(); break; + } default: break; } |
