mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
allow sharing hidden windows
This commit is contained in:
parent
42659b32a4
commit
4a5f39ceb6
@ -267,9 +267,12 @@ void CToplevelExportProtocolManager::onMonitorRender(CMonitor* pMonitor) {
|
||||
|
||||
// share frame if correct output
|
||||
for (auto& f : m_vFramesAwaitingWrite) {
|
||||
if (!g_pHyprRenderer->shouldRenderWindow(f->pWindow, pMonitor))
|
||||
continue;
|
||||
wlr_box geometry = { f->pWindow->m_vRealPosition.vec().x, f->pWindow->m_vRealPosition.vec().y,
|
||||
f->pWindow->m_vRealSize.vec().x, f->pWindow->m_vRealSize.vec().y };
|
||||
|
||||
if (!wlr_output_layout_intersects(g_pCompositor->m_sWLROutputLayout, pMonitor->output, &geometry))
|
||||
continue;
|
||||
|
||||
shareFrame(f);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user