summaryrefslogtreecommitdiff
path: root/src/desktop/Subsurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-03 10:09:42 +0100
committerVaxry <vaxry@vaxry.net>2024-04-03 10:09:48 +0100
commit347b83903474ab9e95fa9d4ba123f6f78ab38d40 (patch)
treecc5a355120ed3a07c85af428c91b63e10674dff8 /src/desktop/Subsurface.cpp
parentfbdaf74a82b38e11a0a6914b3c9f7cb934ac1624 (diff)
workspaces: add visible flag
Diffstat (limited to 'src/desktop/Subsurface.cpp')
-rw-r--r--src/desktop/Subsurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/Subsurface.cpp b/src/desktop/Subsurface.cpp
index c3538ee1..e337c798 100644
--- a/src/desktop/Subsurface.cpp
+++ b/src/desktop/Subsurface.cpp
@@ -117,7 +117,7 @@ void CSubsurface::recheckDamageForSubsurfaces() {
void CSubsurface::onCommit() {
// no damaging if it's not visible
- if (m_pWindowParent && !g_pHyprRenderer->shouldRenderWindow(m_pWindowParent)) {
+ if (m_pWindowParent && (!m_pWindowParent->m_bIsMapped || !m_pWindowParent->m_pWorkspace->m_bVisible)) {
m_vLastSize = Vector2D{m_sWLSurface.wlr()->current.width, m_sWLSurface.wlr()->current.height};
static auto PLOGDAMAGE = CConfigValue<Hyprlang::INT>("debug:log_damage");