Skip to content

Commit

Permalink
damage drag on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 7, 2022
1 parent 26910a8 commit 5c470d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c470d2

Please sign in to comment.