diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 1a2c329b..5ffbe36f 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -94,6 +94,9 @@ std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) { try { if (pWindow->m_bIsX11) { if (pWindow->m_uSurface.xwayland) { + if (!pWindow->m_bMappedX11 || !pWindow->m_bIsMapped) + return "unmanaged X11"; + return std::string(pWindow->m_uSurface.xwayland->_class); } } else if (pWindow->m_uSurface.xdg) {