summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Renderer.cpp5
-rw-r--r--src/render/Renderer.hpp1
2 files changed, 6 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;
diff --git a/src/render/Renderer.hpp b/src/render/Renderer.hpp
index ee95e121..70bdd4ea 100644
--- a/src/render/Renderer.hpp
+++ b/src/render/Renderer.hpp
@@ -26,6 +26,7 @@ public:
void damageSurface(wlr_surface*, double, double);
void damageWindow(CWindow*);
void damageBox(wlr_box*);
+ void damageBox(const int& x, const int& y, const int& w, const int& h);
void damageMonitor(SMonitor*);
void applyMonitorRule(SMonitor*, SMonitorRule*, bool force = false);