From f9c13b614c780c45933440ddecaaa57cc5f1cc12 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 29 Dec 2023 00:26:23 +0100 Subject: [PATCH] xdg-shell: fix sending of suspended state fixes #4287 --- src/Compositor.cpp | 2 +- src/Window.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index c5f54f04..8a0da27b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2795,6 +2795,6 @@ void CCompositor::updateSuspendedStates() { if (!w->m_bIsMapped) continue; - w->setSuspended(w->isHidden() || !g_pHyprRenderer->shouldRenderWindow(w.get())); + w->setSuspended(w->isHidden() || !isWorkspaceVisible(w->m_iWorkspaceID)); } } diff --git a/src/Window.cpp b/src/Window.cpp index 75a1dc2a..debacde0 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -1036,4 +1036,5 @@ void CWindow::setSuspended(bool suspend) { return; wlr_xdg_toplevel_set_suspended(m_uSurface.xdg->toplevel, suspend); + m_bSuspended = suspend; }