block surface feedback on window sharing
This commit is contained in:
parent
9c67e08dbd
commit
da76a1ed9e
3 changed files with 7 additions and 3 deletions
|
|
@ -341,7 +341,9 @@ bool CToplevelExportProtocolManager::copyFrameShm(SToplevelFrame* frame, timespe
|
|||
g_pHyprOpenGL->clear(CColor(0, 0, 0, 255));
|
||||
|
||||
// render client at 0,0
|
||||
g_pHyprRenderer->m_bBlockSurfaceFeedback = g_pHyprRenderer->shouldRenderWindow(frame->pWindow); // block the feedback to avoid spamming the surface if it's visible
|
||||
g_pHyprRenderer->renderWindow(frame->pWindow, PMONITOR, now, false, RENDER_PASS_ALL, true, true);
|
||||
g_pHyprRenderer->m_bBlockSurfaceFeedback = false;
|
||||
|
||||
// copy pixels
|
||||
const auto PFORMAT = get_gles2_format_from_drm(format);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue