aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-22 22:07:08 +0000
committerVaxry <[email protected]>2024-12-22 22:07:08 +0000
commita4a4fffffb74eb40a8ab9cf4606a3edbb4e9fbd9 (patch)
treefa6d094f474b3f9b3da9d45cc6d43def521de6fb
parent1830296df3515222bf0f03b90822e3b23e74b775 (diff)
downloadHyprland-a4a4fffffb74eb40a8ab9cf4606a3edbb4e9fbd9.tar.gz
Hyprland-a4a4fffffb74eb40a8ab9cf4606a3edbb4e9fbd9.zip
renderer: allow plugins to know what window was rendered in post
-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) {