mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 21:09:48 +01:00
renderer: allow plugins to know what window was rendered in post
This commit is contained in:
parent
1830296df3
commit
a4a4fffffb
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue