diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 15:55:47 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 15:55:47 +0100 |
| commit | 50370e4216110bed8068ce9b6c1095452cc8456f (patch) | |
| tree | b5e76f1d32756aa5327d29e213abba2bd027992a /src/render/Renderer.cpp | |
| parent | 45addfb31d02dac2ac7651410178e7a0cfde00f4 (diff) | |
added workspaces
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 74ebb122..6b01a00f 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -50,7 +50,7 @@ void CHyprRenderer::renderAllClientsForMonitor(const int& ID, timespec* time) { for (auto& w : g_pCompositor->m_lWindows) { - if (w.m_bIsX11) + if (w.m_bIsX11 || w.m_iWorkspaceID != PMONITOR->activeWorkspace) continue; 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) { - if (!w.m_bIsX11) + if (!w.m_bIsX11 || w.m_iWorkspaceID != PMONITOR->activeWorkspace) continue; if (!g_pCompositor->windowValidMapped(&w)) |
