diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-05 14:02:30 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-05 14:02:30 +0200 |
| commit | 77d37cd72ab87f67dd47930c61fa0ad8792f26c2 (patch) | |
| tree | d0792b879bd01ec228cf9e08addfcaf7a9439900 /src/render/Renderer.cpp | |
| parent | 8369f2980aa0c98f087aaf2133c94af8027f14fb (diff) | |
optimization: dont damage entire window on border anim
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 71ff5f87..2909ce55 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -495,6 +495,11 @@ void CHyprRenderer::damageBox(wlr_box* pBox) { } } +void CHyprRenderer::damageBox(const int& x, const int& y, const int& w, const int& h) { + wlr_box box = {x, y, w, h}; + damageBox(&box); +} + void CHyprRenderer::renderDragIcon(SMonitor* pMonitor, timespec* time) { if (!(g_pInputManager->m_sDrag.dragIcon && g_pInputManager->m_sDrag.iconMapped && g_pInputManager->m_sDrag.dragIcon->surface)) return; |
