fix floating rendering on multimon

This commit is contained in:
vaxerski 2022-03-20 11:18:01 +01:00
parent a4b026df2b
commit 281cb9fd04

View file

@ -50,7 +50,7 @@ void CHyprRenderer::renderAllClientsForMonitor(const int& ID, timespec* time) {
for (auto& w : g_pCompositor->m_lWindows) { for (auto& w : g_pCompositor->m_lWindows) {
if (w.m_bIsX11 || w.m_iMonitorID != (uint64_t)ID) if (w.m_bIsX11)
continue; continue;
wlr_box geometry = { w.m_vRealPosition.x, w.m_vRealPosition.y, w.m_vRealSize.x, w.m_vRealSize.y }; wlr_box geometry = { w.m_vRealPosition.x, w.m_vRealPosition.y, w.m_vRealSize.x, w.m_vRealSize.y };
@ -71,7 +71,7 @@ void CHyprRenderer::renderAllClientsForMonitor(const int& ID, timespec* time) {
for (auto& w : g_pCompositor->m_lWindows) { for (auto& w : g_pCompositor->m_lWindows) {
if (!w.m_bIsX11 || w.m_iMonitorID != (uint64_t)ID) if (!w.m_bIsX11)
continue; continue;
if (!g_pCompositor->windowValidMapped(&w)) if (!g_pCompositor->windowValidMapped(&w))