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/render/Renderer.cpp | |
| parent | 208864cba94eec4eb8df139fb215611ce42a2789 (diff) | |
damage drag and drop
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index b1ecde71..731674d6 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -627,6 +627,9 @@ void CHyprRenderer::renderDragIcon(SMonitor* pMonitor, timespec* time) { renderdata.h = g_pInputManager->m_sDrag.dragIcon->surface->current.height; wlr_surface_for_each_surface(g_pInputManager->m_sDrag.dragIcon->surface, renderSurface, &renderdata); + + 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); } DAMAGETRACKINGMODES CHyprRenderer::damageTrackingModeFromStr(const std::string& mode) { |
