From 5c470d2e546f89d5f5c4f6e95edf6f94685c1e1b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:18:44 +0200 Subject: [PATCH] damage drag on destroy --- src/events/Misc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index f952bec2..e30769f1 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -124,6 +124,8 @@ void Events::listener_startDrag(wl_listener* listener, void* data) { void Events::listener_destroyDrag(void* owner, void* data) { Debug::log(LOG, "Drag destroyed."); + g_pHyprRenderer->damageBox(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_pInputManager->m_sDrag.drag = nullptr; g_pInputManager->m_sDrag.dragIcon = nullptr; g_pInputManager->m_sDrag.hyprListener_destroy.removeCallback();