From 4bff762d9733ba7334cd37b995cf51552cc80be0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 29 Feb 2024 01:21:15 +0000 Subject: [PATCH] xwaylandmgr: don't read xwayland surface from unmapped xwayland --- src/managers/XWaylandManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index a7e869cb..1704ee99 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -100,7 +100,7 @@ void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, CBox* pbox) { std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) { try { if (pWindow->m_bIsX11) { - if (!pWindow->m_bIsMapped && pWindow->m_iX11Type != 1) + if (!pWindow->m_bIsMapped) return ""; if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->title) { @@ -121,7 +121,7 @@ std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) { std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) { try { if (pWindow->m_bIsX11) { - if (!pWindow->m_bIsMapped && pWindow->m_iX11Type != 1) + if (!pWindow->m_bIsMapped) return ""; if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->_class) {