diff options
author | Agent00Ming <[email protected]> | 2024-11-27 09:17:45 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-27 14:17:45 +0000 |
commit | e9a7fb8f91d23f1ac2671e55f74234dcec2ee1c6 (patch) | |
tree | 3e4056a049312e821e6ee1d6e9d64dc42c30e190 | |
parent | 1fb720b62aeb474873ba43426ddc53afde1e6cdd (diff) | |
download | Hyprland-e9a7fb8f91d23f1ac2671e55f74234dcec2ee1c6.tar.gz Hyprland-e9a7fb8f91d23f1ac2671e55f74234dcec2ee1c6.zip |
renderer: fix incorrect early return (#8590)
Co-authored-by: Agent_00Ming <[email protected]>
-rw-r--r-- | src/render/Renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index dae62851..ca6ceba1 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -331,7 +331,7 @@ bool CHyprRenderer::shouldRenderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor) { if (pWindow->m_pMonitor == pMonitor) return true; - if (!(!pWindow->m_pWorkspace || !pWindow->m_pWorkspace->isVisible()) && pWindow->m_pMonitor != pMonitor) + if ((!pWindow->m_pWorkspace || !pWindow->m_pWorkspace->isVisible()) && pWindow->m_pMonitor != pMonitor) return false; // if not, check if it maybe is active on a different monitor. |