aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render/Renderer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 0f8db3bb..d8b8a847 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -555,7 +555,7 @@ void CHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, timespe
},
nullptr);
- g_pHyprOpenGL->m_RenderData.useNearestNeighbor = false;
+ renderdata.useNearestNeighbor = false;
if (renderdata.decorate) {
for (auto const& wd : pWindow->m_dWindowDecorations) {
@@ -638,7 +638,12 @@ void CHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, timespe
}
}
+ // for plugins
+ g_pHyprOpenGL->m_RenderData.currentWindow = pWindow;
+
EMIT_HOOK_EVENT("render", RENDER_POST_WINDOW);
+
+ g_pHyprOpenGL->m_RenderData.currentWindow.reset();
}
void CHyprRenderer::renderLayer(PHLLS pLayer, PHLMONITOR pMonitor, timespec* time, bool popups) {